-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection.json
58 lines (58 loc) · 1.62 KB
/
collection.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"description": "This is the response format for collections",
"extends": "./record.json",
"properties": {
"result": {
"type": "array",
},
"collection": {
"description": "Metadata of the collection",
"type": "object",
"required": true,
"properties": {
"next_url": {
"description": "Absolute uri to the next page of the collection",
"type": ["string", "null"],
"format": "uri",
"required": true
},
"prev_url": {
"description": "Absolute uri to the previous page of the collection",
"type": ["string", "null"],
"format": "uri",
"required": true
},
"first_url": {
"description": "Absolute uri to the first page of the collection",
"type": "string",
"format": "uri",
"required": true
},
"last_url": {
"description": "Absolute uri to the last page of the collection",
"type": "string",
"format": "uri",
"required": true
},
"size": {
"description": "Total amout of elements in the collection",
"type": "integer",
"required": true,
"minimum": 0
},
"per_page": {
"description": "Requested amount of elements per page",
"type": "integer",
"required": true,
"minimum": 1
},
"pages": {
"description": "Total number of pages in this collection"
"type": "integer",
"required": true,
"minimum": 0
}
}
}
}
}