forked from activitystreams/json-schema
/
feed.json
38 lines (38 loc) · 1.32 KB
/
feed.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
{
"type" : "object",
"title" : "feed",
"description" : "This is the top level container which is typically the response for the API call. A feed contains an array of activities usually related to each other via a subject. Ex: Peter's Lifestream. A feed or stream can also be used to syncrhonize changes",
"properties" : {
"title" : {
"type" : "string",
"optional" : true,
"description": "Human readable name of the feed"
},
"subject" : {
"type" : "object",
"description" : "The main object the activities are grouped by. All objects default to being inReplyTo this object. If not present its the parent object",
"optional" : true,
"properties" :{"$ref":"./object.json#properties"}
},
"count": {
"type" : "number",
"description" : "The total number of items"
},
"items" : {
"type" : "array",
"items": {
"type" : "object",
"properties" :{"$ref":"./activity.json#properties"}
}
},
"links" : {
"type" : "array",
"optional" : true,
"description" :"Links between an this object and other resources as defined in Web Linking",
"properties" : {"$ref" : "http://json-schema.org/links#properties"}
}
},
"links": [
{"rel": "describedby", "href": "http://json-schema.org/schema"}
]
}