Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 93 lines (92 sloc) 4.442 kB
371100a @ciberch first commit
ciberch authored
1 {
2 "type" : "object",
3 "title" : "activity",
31b156b @ciberch Updating text so web server cache is popped and we can get the conten…
ciberch authored
4 "description" : "An activity construct recounts what an actor did to an object in the past. If there is no actor it simply describes the change.",
371100a @ciberch first commit
ciberch authored
5 "properties": {
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
6 "id" :{
7 "type" : "string",
8 "description" : "Uniquely identifies each activity within the service",
9 "default" :"{link}"
10 },
0309588 @ciberch Fixed references
ciberch authored
11 "actor" : {
12 "type": "object",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
13 "description": "Describes the entity that performed the activity. An activity MUST contain one actor property whose value is a single Object.",
954ab7d @ciberch Made the author optional on activities so they can be used for sync a…
ciberch authored
14 "properties" : {"$ref":"./object.json#properties"},
15 "optional" : true
0309588 @ciberch Fixed references
ciberch authored
16 },
17 "verb" : {
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
18 "title" : "verb",
19 "type" : "string",
20 "default": "post",
21 "optional" : "true",
22 "description" :"Represents the type of action performed by the actor."
0309588 @ciberch Fixed references
ciberch authored
23 },
371100a @ciberch first commit
ciberch authored
24 "object" : {
25 "type": "object",
26 "description" : "Identifies the primary object of the activity. Example: A photo",
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
27 "properties" : {"$ref":"./object.json#properties"}
371100a @ciberch first commit
ciberch authored
28 },
29 "target" : {
30 "type": "object",
31 "optional" : true,
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
32 "description" : "Describes the target of the activity. The precise meaning of the activity's target is dependent on the activities verb, but will often be the object the English preposition "to". For instance, in the activity, "John saved a movie to his wishlist", the target of the activity is "wishlist". The activity target MUST NOT be used to identity an indirect object that is not a target of the activity. An activity MAY contain a target property whose value is a single Object.",
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
33 "properties" : {"$ref":"./object.json#properties"}
371100a @ciberch first commit
ciberch authored
34 },
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
35 "postedTime" : {
371100a @ciberch first commit
ciberch authored
36 "type" : "string",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
37 "description": "The date and time at which the activity occurred. It is important to note that this is not necessarily the same as the time at which the activity was published. An activity MUST contain a postedTime property.",
38 "format" : "date"
39 },
40 "updatedTime" : {
41 "type" : "string",
42 "optional" : true,
43 "description": "The date and time at which a previously published activity has been modified. An Activity MAY contain an updatedTime property",
371100a @ciberch first commit
ciberch authored
44 "format" : "date"
45 },
46 "generator" : {
47 "type": "object",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
48 "description": "Describes the application that generated the activity. An activity MAY contain a generator property whose value is a single Object.",
371100a @ciberch first commit
ciberch authored
49 "optional" : true,
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
50 "properties" : {"$ref":"./object.json#properties"}
371100a @ciberch first commit
ciberch authored
51 },
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
52 "icon" : {
53 "type": "string",
54 "optional" : true,
55 "description": "An IRI[RFC3987] identifying an image resource provides a visual representation of the activity, intended for human consumption. The image SHOULD have an aspect ratio of one (horizontal) to one (vertical) and SHOULD be suitable for presentation at a small size. An activity MAY have an icon property"
56 },
371100a @ciberch first commit
ciberch authored
57 "provider" : {
58 "type": "object",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
59 "description" : "Describes the application that published the activity. Note that this is not necessarily the same entity that generated the activity. An activity MAY contain a provider property whose value is a single Object",
371100a @ciberch first commit
ciberch authored
60 "optional" : true,
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
61 "properties" : {"$ref":"./object.json#properties"}
371100a @ciberch first commit
ciberch authored
62 },
63 "title" : {
64 "type" : "string",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
65 "description" : "Natural-language title or headline for the activity encoded as a single JSON String containing HTML markup. An activity MAY contain a title property",
371100a @ciberch first commit
ciberch authored
66 "format": "html",
67 "optional" : true
68 },
69 "body" : {
70 "type" : "string",
7af094b @ciberch Updates to match latest json activity spec
ciberch authored
71 "description" : "Natural-language description of the activity encoded as a single JSON String containing HTML markup. Visual elements such as thumbnail images MAY be included. An activity MAY contain a body property.",
371100a @ciberch first commit
ciberch authored
72 "format" : "html",
73 "optional" : true
74 },
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
75 "link" : {
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
76 "type" : "string",
77 "description" : "Permalink to the activity",
78 "format" : "url",
79 "optional":true
80 },
371100a @ciberch first commit
ciberch authored
81 "links" : {
82 "type" : "array",
83 "optional" : true,
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
84 "description" :"Links between this object and other resources as defined in Web Linking",
9511acb @ciberch Updated JSON extension and references
ciberch authored
85 "note": "Tell JSON schema team to not put links inside http://json-schema.org/hyper-schema#properties",
86 "properties" : {"$ref" : "http://json-schema.org/links#properties"}
371100a @ciberch first commit
ciberch authored
87 }
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
88 },
89 "links": [
a6d5234 @ciberch Made references relative to avoid cross domain scripting
ciberch authored
90 {"rel": "describedby", "href": "./verbs/{verb}.json"}
76e2e73 @ciberch Expanded the verbs and object types
ciberch authored
91 ]
371100a @ciberch first commit
ciberch authored
92 }
Something went wrong with that request. Please try again.