Make all request for domains complete
parent
e35668d5ec
commit
1f4bed81cf
|
@ -34,12 +34,41 @@
|
|||
}
|
||||
```
|
||||
|
||||
### Create
|
||||
* [TODO] create(name, type) -> id
|
||||
### Update
|
||||
* [TODO] set type(id, type)
|
||||
### Delete
|
||||
* [TODO] delete(id)
|
||||
### Create new domain
|
||||
`POST /api/domains`
|
||||
|
||||
**Body**
|
||||
```json
|
||||
{
|
||||
"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
|
||||
### Create
|
||||
|
|
Loading…
Reference in a new issue