mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 21:25:39 +02:00
Merge remote-tracking branch 'origin/registry-660' into registry-661
# Conflicts: # db/structure.sql # doc/repp-doc.md
This commit is contained in:
commit
56e3f236bc
156 changed files with 2085 additions and 1276 deletions
|
@ -39,7 +39,7 @@ Content-Type: application/json
|
|||
"valid_from": "2015-09-09T09:11:14.861Z",
|
||||
"valid_to": "2016-09-09T09:11:14.861Z",
|
||||
"registrant_id": 1,
|
||||
"auth_info": "98oiewslkfkd",
|
||||
"transfer_code": "98oiewslkfkd",
|
||||
"created_at": "2015-09-09T09:11:14.861Z",
|
||||
"updated_at": "2015-09-09T09:11:14.860Z",
|
||||
"name_dirty": "domain0.ee",
|
||||
|
|
48
doc/repp/v1/domain_transfers.md
Normal file
48
doc/repp/v1/domain_transfers.md
Normal file
|
@ -0,0 +1,48 @@
|
|||
# Domain transfers
|
||||
|
||||
## POST /repp/v1/domain_transfers
|
||||
Transfers domains.
|
||||
|
||||
#### Request
|
||||
```
|
||||
POST /repp/v1/domain_transfers
|
||||
Accept: application/json
|
||||
Content-Type: application/json
|
||||
Authorization: Basic dGVzdDp0ZXN0dGVzdA==
|
||||
|
||||
{
|
||||
"data":{
|
||||
"domainTransfers":[
|
||||
{
|
||||
"domainName":"example.com",
|
||||
"transferCode":"63e7"
|
||||
},
|
||||
{
|
||||
"domainName":"example.org",
|
||||
"transferCode":"15f9"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
#### Response on success
|
||||
```
|
||||
HTTP/1.1 204
|
||||
```
|
||||
|
||||
#### Response on failure
|
||||
```
|
||||
HTTP/1.1 400
|
||||
Content-Type: application/json
|
||||
{
|
||||
"errors":[
|
||||
{
|
||||
"title":"example.com transfer code is wrong"
|
||||
},
|
||||
{
|
||||
"title":"example.org does not exist"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue