Make all request for domains complete
parent
e35668d5ec
commit
1f4bed81cf
|
@ -34,12 +34,41 @@
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create
|
### Create new domain
|
||||||
* [TODO] create(name, type) -> id
|
`POST /api/domains`
|
||||||
### Update
|
|
||||||
* [TODO] set type(id, type)
|
**Body**
|
||||||
### Delete
|
```json
|
||||||
* [TODO] delete(id)
|
{
|
||||||
|
"name": "example.com",
|
||||||
|
"type": "MASTER"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
**Response**
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"id": 21
|
||||||
|
"name": "example.com",
|
||||||
|
"type": "MASTER"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### Delete domain
|
||||||
|
`DELETE /api/domains/{id}`
|
||||||
|
|
||||||
|
### Get single domain
|
||||||
|
`GET /api/domains/{id}`
|
||||||
|
|
||||||
|
**Response**
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"id": 1,
|
||||||
|
"name": "example.com",
|
||||||
|
"type": "MASTER",
|
||||||
|
"records": 21
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Records
|
## Records
|
||||||
### Create
|
### Create
|
||||||
|
|
Loading…
Reference in a new issue