mirror of
https://github.com/internetee/registry.git
synced 2025-06-06 12:47:29 +02:00
Merge pull request #1702 from internetee/1580-registrar-api-contacts-endpoint
REPP: Contact management
This commit is contained in:
commit
bcafa2e424
57 changed files with 2049 additions and 649 deletions
|
@ -37,12 +37,35 @@ Rails.application.routes.draw do
|
|||
get 'error/:command', to: 'errors#error'
|
||||
end
|
||||
|
||||
mount Repp::API => '/'
|
||||
|
||||
namespace :repp do
|
||||
namespace :v1 do
|
||||
resources :contacts do
|
||||
collection do
|
||||
get 'check/:id', to: 'contacts#check'
|
||||
end
|
||||
end
|
||||
|
||||
resources :accounts do
|
||||
collection do
|
||||
get 'balance'
|
||||
end
|
||||
end
|
||||
resources :auctions, only: %i[index]
|
||||
resources :retained_domains, only: %i[index]
|
||||
namespace :registrar do
|
||||
resources :nameservers do
|
||||
collection do
|
||||
put '/', to: 'nameservers#update'
|
||||
end
|
||||
end
|
||||
end
|
||||
resources :domains do
|
||||
collection do
|
||||
get ':id/transfer_info', to: 'domains#transfer_info', constraints: { id: /.*/ }
|
||||
post 'transfer', to: 'domains#transfer'
|
||||
patch 'contacts', to: 'domains/contacts#update'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue