-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathicarResourceCollectionReference.json
59 lines (56 loc) · 1.54 KB
/
icarResourceCollectionReference.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
59
{
"description": "Defines a reference to a collection of resources.",
"type": "object",
"required": [
"@id",
"@type",
"@context"
],
"properties": {
"@id": {
"type": "string",
"format": "uri",
"description": "Uniform resource idendentifier (URI) of the collection."
},
"@type": {
"type": "string",
"description": "Specifies whether this is a single resource Link or a Collection.",
"enum": ["Collection"]
},
"@context": {
"type": "string",
"description": "Tells us the type of the referenced resource object (eg. icarAnimalCoreCollection)."
},
"totalItems": {
"type": "integer",
"description": "Provides the number of items in the collection, if known."
},
"pageSize": {
"type": "integer",
"description": "If non-zero, specifies the default number of items returned per page."
},
"totalPages": {
"type": "integer",
"description": "Provides the number of pages in the collection, if known."
},
"operations": {
"type": "array",
"items": {
"@type": {
"type": "string",
"enum": ["Operation"]
},
"method": {
"type": "string",
"enum": ["GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"]
}
},
"description": "Defines the operations that may be carried out on the collection (POST) or its members (PUT/PATCH/DELETE)."
}
},
"links": [{
"rel": "collection",
"href": "{@id}",
"templateRequired": ["@id"]
}]
}