Updated API Domains (markdown)
parent
e0c428ed1c
commit
002c19bed3
1 changed files with 11 additions and 4 deletions
|
|
@ -1,6 +1,12 @@
|
|||
# Domains
|
||||
## Get list of domains
|
||||
`GET /domains?query=foo&sort=id-asc,name-desc,type-asc,records-asc`
|
||||
`GET /domains?page=5&pagesize=10&query=foo&sort=id-asc,name-desc,type-asc,records-asc`
|
||||
| parameter | explanation |
|
||||
| --- | --- |
|
||||
| page | The page of the results to return |
|
||||
| pagesize | How many items should be on each page |
|
||||
| query | A search query |
|
||||
| sort | A comma separated list of field names to sort (in this order) combined with the sort order (see example) |
|
||||
|
||||
### Response
|
||||
| code | result |
|
||||
|
|
@ -9,9 +15,10 @@
|
|||
|
||||
```json
|
||||
{
|
||||
"pages": {
|
||||
"current": 21,
|
||||
"total": 42
|
||||
"paging": {
|
||||
"page": 5,
|
||||
"total": 20,
|
||||
"pagesize": 10
|
||||
},
|
||||
"results": [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue