mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 22:54:47 +02:00
Update API documentation for registry locks
This commit is contained in:
parent
58fec27f72
commit
fc2a4eaa9b
2 changed files with 30 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
# Domain locks
|
||||
# Registry lock
|
||||
|
||||
## POST api/v1/registrant/domains/$UUID/registry_lock
|
||||
|
||||
|
@ -59,12 +59,12 @@ Content-Type: application/json
|
|||
#### Response for failure
|
||||
|
||||
```
|
||||
HTTP/1.1 400
|
||||
HTTP/1.1 422
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"errors": [
|
||||
{ "base": "domain cannot be locked" }
|
||||
{ "base": "Domain cannot be locked" }
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -76,11 +76,23 @@ Content-Type: application/json
|
|||
|
||||
{
|
||||
"errors": [
|
||||
{ "base": "domain does not exist" }
|
||||
{ "base": "Domain not found" }
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
```
|
||||
HTTP/1.1 401
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"errors": [
|
||||
{ "base": ["Only administrative contacts can manage registry locks"] }
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
|
||||
## DELETE api/v1/registrant/domains/$UUID/registry_lock
|
||||
|
||||
|
@ -156,7 +168,19 @@ Content-Type: application/json
|
|||
|
||||
{
|
||||
"errors": [
|
||||
{ "base": "domain does not exist" }
|
||||
{ "base": "Domain not found" }
|
||||
]
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
HTTP/1.1 401
|
||||
Content-Type: application/json
|
||||
|
||||
{
|
||||
"errors": [
|
||||
{ "base": ["Only administrative contacts can manage registry locks"] }
|
||||
]
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue