pmp 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pmp/collection_document.rb +16 -7
- data/lib/pmp/configuration.rb +10 -7
- data/lib/pmp/credential.rb +1 -1
- data/lib/pmp/token.rb +5 -1
- data/lib/pmp/version.rb +1 -1
- data/spec/client_spec.rb +7 -16
- data/spec/collection_document_spec.rb +20 -47
- data/spec/credential_spec.rb +9 -13
- data/spec/fixtures/collection_query.json +926 -1091
- data/spec/fixtures/collection_root.json +334 -360
- data/spec/link_spec.rb +2 -2
- data/spec/parser_spec.rb +1 -1
- data/spec/token_spec.rb +12 -7
- metadata +2 -2
|
@@ -1,368 +1,342 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
},
|
|
9
|
-
"created": "2014-07-24T23:02:27+00:00",
|
|
10
|
-
"modified": "2014-07-24T23:02:27+00:00",
|
|
11
|
-
"guid": "04224975-e93c-4b17-9df9-96db37d318f3",
|
|
12
|
-
"title": "PMP Home Document",
|
|
13
|
-
"published": "2013-07-04T04:00:44+00:00"
|
|
2
|
+
"version": "1.0",
|
|
3
|
+
"href": "https://api.pmp.io/",
|
|
4
|
+
"attributes": {
|
|
5
|
+
"valid": {
|
|
6
|
+
"from": "2013-07-04T04:00:44+00:00",
|
|
7
|
+
"to": "3013-07-04T04:00:44+00:00"
|
|
14
8
|
},
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
"created": "2014-09-04T15:06:19+00:00",
|
|
10
|
+
"modified": "2014-09-04T15:06:19+00:00",
|
|
11
|
+
"guid": "04224975-e93c-4b17-9df9-96db37d318f3",
|
|
12
|
+
"title": "PMP Home Document",
|
|
13
|
+
"published": "2013-07-04T04:00:44+00:00"
|
|
14
|
+
},
|
|
15
|
+
"links": {
|
|
16
|
+
"bookmark": [
|
|
17
|
+
{
|
|
18
|
+
"href": "https://api.pmp.io/docs/trove",
|
|
19
|
+
"rels": [
|
|
20
|
+
"urn:pmp:trove"
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"creator": [
|
|
25
|
+
{
|
|
26
|
+
"href": "https://api.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"item": [],
|
|
30
|
+
"navigation": [
|
|
31
|
+
{
|
|
32
|
+
"href": "https://api.pmp.io/docs?guid=04224975-e93c-4b17-9df9-96db37d318f3",
|
|
33
|
+
"rels": [
|
|
34
|
+
"self"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"query": [
|
|
39
|
+
{
|
|
40
|
+
"href-template": "https://api.pmp.io/docs/{guid}{?limit,offset}",
|
|
41
|
+
"title": "Access documents",
|
|
42
|
+
"rels": [
|
|
43
|
+
"urn:collectiondoc:hreftpl:docs"
|
|
23
44
|
],
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
45
|
+
"href-vars": {
|
|
46
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
47
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
48
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
49
|
+
},
|
|
50
|
+
"hints": {
|
|
51
|
+
"allow": [
|
|
52
|
+
"GET"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"href-template": "https://api.pmp.io/profiles/{guid}",
|
|
58
|
+
"title": "Access profiles",
|
|
59
|
+
"rels": [
|
|
60
|
+
"urn:collectiondoc:hreftpl:profiles"
|
|
28
61
|
],
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
62
|
+
"href-vars": {
|
|
63
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
64
|
+
},
|
|
65
|
+
"hints": {
|
|
66
|
+
"allow": [
|
|
67
|
+
"GET"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"href-template": "https://api.pmp.io/schemas/{guid}",
|
|
73
|
+
"title": "Access schemas",
|
|
74
|
+
"rels": [
|
|
75
|
+
"urn:collectiondoc:hreftpl:schemas"
|
|
37
76
|
],
|
|
38
|
-
"
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"GET"
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"href-template": "https://api-sandbox.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
|
|
58
|
-
"title": "Query for documents",
|
|
59
|
-
"rels": [
|
|
60
|
-
"urn:collectiondoc:query:docs"
|
|
61
|
-
],
|
|
62
|
-
"href-vars": {
|
|
63
|
-
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
|
64
|
-
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
|
65
|
-
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
|
66
|
-
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
|
67
|
-
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
|
68
|
-
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
|
69
|
-
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
|
70
|
-
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
|
71
|
-
"language": "http://docs.pmp.io/wiki/Content-Retrieval#language",
|
|
72
|
-
"profile": "http://docs.pmp.io/wiki/Content-Retrieval#profile",
|
|
73
|
-
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
|
74
|
-
"has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
|
|
75
|
-
"distributor": "http://docs.pmp.io/wiki/Content-Retrieval#distributor",
|
|
76
|
-
"distributorgroup": "http://docs.pmp.io/wiki/Content-Retrieval#distributorgroup",
|
|
77
|
-
"author": "http://docs.pmp.io/wiki/Content-Retrieval#author",
|
|
78
|
-
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
|
79
|
-
},
|
|
80
|
-
"hints": {
|
|
81
|
-
"allow": [
|
|
82
|
-
"GET"
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
|
|
88
|
-
"title": "Access profiles",
|
|
89
|
-
"rels": [
|
|
90
|
-
"urn:collectiondoc:hreftpl:profiles"
|
|
91
|
-
],
|
|
92
|
-
"href-vars": {
|
|
93
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
94
|
-
},
|
|
95
|
-
"hints": {
|
|
96
|
-
"allow": [
|
|
97
|
-
"GET"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"href-template": "https://api-sandbox.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
103
|
-
"title": "Query for profiles",
|
|
104
|
-
"rels": [
|
|
105
|
-
"urn:collectiondoc:query:profiles"
|
|
106
|
-
],
|
|
107
|
-
"href-vars": {
|
|
108
|
-
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
|
109
|
-
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
|
110
|
-
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
|
111
|
-
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
|
112
|
-
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
|
113
|
-
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
|
114
|
-
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
|
115
|
-
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
|
116
|
-
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
|
117
|
-
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
|
118
|
-
},
|
|
119
|
-
"hints": {
|
|
120
|
-
"allow": [
|
|
121
|
-
"GET"
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
|
|
127
|
-
"title": "Access schemas",
|
|
128
|
-
"rels": [
|
|
129
|
-
"urn:collectiondoc:hreftpl:schemas"
|
|
130
|
-
],
|
|
131
|
-
"href-vars": {
|
|
132
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
133
|
-
},
|
|
134
|
-
"hints": {
|
|
135
|
-
"allow": [
|
|
136
|
-
"GET"
|
|
137
|
-
]
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
"href-template": "https://api-sandbox.pmp.io/schemas{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
142
|
-
"title": "Query for schemas",
|
|
143
|
-
"rels": [
|
|
144
|
-
"urn:collectiondoc:query:schemas"
|
|
145
|
-
],
|
|
146
|
-
"href-vars": {
|
|
147
|
-
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
|
148
|
-
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
|
149
|
-
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
|
150
|
-
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
|
151
|
-
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
|
152
|
-
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
|
153
|
-
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
|
154
|
-
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
|
155
|
-
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
|
156
|
-
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
|
157
|
-
},
|
|
158
|
-
"hints": {
|
|
159
|
-
"allow": [
|
|
160
|
-
"GET"
|
|
161
|
-
]
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"href-template": "https://api-sandbox.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
166
|
-
"title": "Query for users",
|
|
167
|
-
"rels": [
|
|
168
|
-
"urn:collectiondoc:query:users"
|
|
169
|
-
],
|
|
170
|
-
"href-vars": {
|
|
171
|
-
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
|
172
|
-
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
|
173
|
-
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
|
174
|
-
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
|
175
|
-
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
|
176
|
-
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
|
177
|
-
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
|
178
|
-
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
|
179
|
-
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
|
180
|
-
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
|
181
|
-
},
|
|
182
|
-
"hints": {
|
|
183
|
-
"allow": [
|
|
184
|
-
"GET"
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
"href-template": "https://api-sandbox.pmp.io/groups{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,has,text}",
|
|
190
|
-
"title": "Query for groups",
|
|
191
|
-
"rels": [
|
|
192
|
-
"urn:collectiondoc:query:groups"
|
|
193
|
-
],
|
|
194
|
-
"href-vars": {
|
|
195
|
-
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
|
196
|
-
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
|
197
|
-
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
|
198
|
-
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
|
199
|
-
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
|
200
|
-
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
|
201
|
-
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
|
202
|
-
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
|
203
|
-
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
|
204
|
-
"has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
|
|
205
|
-
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
|
206
|
-
},
|
|
207
|
-
"hints": {
|
|
208
|
-
"allow": [
|
|
209
|
-
"GET"
|
|
210
|
-
]
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"href": "https://api-sandbox.pmp.io/guids",
|
|
215
|
-
"title": "Generate guids",
|
|
216
|
-
"rels": [
|
|
217
|
-
"urn:collectiondoc:query:guids"
|
|
218
|
-
],
|
|
219
|
-
"hints": {
|
|
220
|
-
"allow": [
|
|
221
|
-
"POST"
|
|
222
|
-
],
|
|
223
|
-
"accept-post": [
|
|
224
|
-
"application/x-www-form-urlencoded"
|
|
225
|
-
]
|
|
226
|
-
},
|
|
227
|
-
"type": "application/json"
|
|
228
|
-
}
|
|
77
|
+
"href-vars": {
|
|
78
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
79
|
+
},
|
|
80
|
+
"hints": {
|
|
81
|
+
"allow": [
|
|
82
|
+
"GET"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"href-template": "https://api.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
|
|
88
|
+
"title": "Query for documents",
|
|
89
|
+
"rels": [
|
|
90
|
+
"urn:collectiondoc:query:docs"
|
|
229
91
|
],
|
|
230
|
-
"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
},
|
|
260
|
-
"hints": {
|
|
261
|
-
"formats": [
|
|
262
|
-
"application/vnd.collection.doc+json"
|
|
263
|
-
],
|
|
264
|
-
"allow": [
|
|
265
|
-
"PUT",
|
|
266
|
-
"DELETE"
|
|
267
|
-
],
|
|
268
|
-
"docs": "http://docs.pmp.io/wiki/Profile-profile"
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
{
|
|
272
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
|
273
|
-
"title": "Schema Save",
|
|
274
|
-
"rels": [
|
|
275
|
-
"urn:collectiondoc:form:schemasave"
|
|
276
|
-
],
|
|
277
|
-
"href-vars": {
|
|
278
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
279
|
-
},
|
|
280
|
-
"hints": {
|
|
281
|
-
"formats": [
|
|
282
|
-
"application/vnd.collection.doc+json"
|
|
283
|
-
],
|
|
284
|
-
"allow": [
|
|
285
|
-
"PUT",
|
|
286
|
-
"DELETE"
|
|
287
|
-
],
|
|
288
|
-
"docs": "http://docs.pmp.io/wiki/Schema-profile"
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
|
293
|
-
"title": "Upload a rich media file",
|
|
294
|
-
"rels": [
|
|
295
|
-
"urn:collectiondoc:form:mediaupload"
|
|
296
|
-
],
|
|
297
|
-
"href-vars": {
|
|
298
|
-
"submission": "http://docs.pmp.io/wiki/Media-File-Upload"
|
|
299
|
-
},
|
|
300
|
-
"hints": {
|
|
301
|
-
"allow": [
|
|
302
|
-
"POST"
|
|
303
|
-
],
|
|
304
|
-
"accept-post": [
|
|
305
|
-
"multipart/form-data"
|
|
306
|
-
]
|
|
307
|
-
}
|
|
308
|
-
}
|
|
92
|
+
"href-vars": {
|
|
93
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
|
94
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
95
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
96
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
|
97
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
|
98
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
|
99
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
|
100
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
|
101
|
+
"language": "http://docs.pmp.io/wiki/Querying-the-API#language",
|
|
102
|
+
"profile": "http://docs.pmp.io/wiki/Querying-the-API#profile",
|
|
103
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
|
104
|
+
"has": "http://docs.pmp.io/wiki/Querying-the-API#has",
|
|
105
|
+
"distributor": "http://docs.pmp.io/wiki/Querying-the-API#distributor",
|
|
106
|
+
"distributorgroup": "http://docs.pmp.io/wiki/Querying-the-API#distributorgroup",
|
|
107
|
+
"author": "http://docs.pmp.io/wiki/Querying-the-API#author",
|
|
108
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
|
109
|
+
},
|
|
110
|
+
"hints": {
|
|
111
|
+
"allow": [
|
|
112
|
+
"GET"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"href-template": "https://api.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
118
|
+
"title": "Query for profiles",
|
|
119
|
+
"rels": [
|
|
120
|
+
"urn:collectiondoc:query:profiles"
|
|
309
121
|
],
|
|
310
|
-
"
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
122
|
+
"href-vars": {
|
|
123
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
|
124
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
125
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
126
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
|
127
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
|
128
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
|
129
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
|
130
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
|
131
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
|
132
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
|
133
|
+
},
|
|
134
|
+
"hints": {
|
|
135
|
+
"allow": [
|
|
136
|
+
"GET"
|
|
137
|
+
]
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"href-template": "https://api.pmp.io/schemas{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
142
|
+
"title": "Query for schemas",
|
|
143
|
+
"rels": [
|
|
144
|
+
"urn:collectiondoc:query:schemas"
|
|
145
|
+
],
|
|
146
|
+
"href-vars": {
|
|
147
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
|
148
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
149
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
150
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
|
151
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
|
152
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
|
153
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
|
154
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
|
155
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
|
156
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
|
157
|
+
},
|
|
158
|
+
"hints": {
|
|
159
|
+
"allow": [
|
|
160
|
+
"GET"
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"href-template": "https://api.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
|
166
|
+
"title": "Query for users",
|
|
167
|
+
"rels": [
|
|
168
|
+
"urn:collectiondoc:query:users"
|
|
169
|
+
],
|
|
170
|
+
"href-vars": {
|
|
171
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
|
172
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
173
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
174
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
|
175
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
|
176
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
|
177
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
|
178
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
|
179
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
|
180
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
|
181
|
+
},
|
|
182
|
+
"hints": {
|
|
183
|
+
"allow": [
|
|
184
|
+
"GET"
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"href-template": "https://api.pmp.io/groups{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,has,text}",
|
|
190
|
+
"title": "Query for groups",
|
|
191
|
+
"rels": [
|
|
192
|
+
"urn:collectiondoc:query:groups"
|
|
193
|
+
],
|
|
194
|
+
"href-vars": {
|
|
195
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
|
196
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
|
197
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
|
198
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
|
199
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
|
200
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
|
201
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
|
202
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
|
203
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
|
204
|
+
"has": "http://docs.pmp.io/wiki/Querying-the-API#has",
|
|
205
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
|
206
|
+
},
|
|
207
|
+
"hints": {
|
|
208
|
+
"allow": [
|
|
209
|
+
"GET"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
],
|
|
214
|
+
"edit": [
|
|
215
|
+
{
|
|
216
|
+
"href-template": "https://publish.pmp.io/docs/{guid}",
|
|
217
|
+
"title": "Document Save",
|
|
218
|
+
"rels": [
|
|
219
|
+
"urn:collectiondoc:form:documentsave"
|
|
220
|
+
],
|
|
221
|
+
"href-vars": {
|
|
222
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
223
|
+
},
|
|
224
|
+
"hints": {
|
|
225
|
+
"formats": [
|
|
226
|
+
"application/vnd.collection.doc+json"
|
|
227
|
+
],
|
|
228
|
+
"allow": [
|
|
229
|
+
"PUT"
|
|
230
|
+
],
|
|
231
|
+
"docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"href-template": "https://publish.pmp.io/docs/{guid}",
|
|
236
|
+
"title": "Document Delete",
|
|
237
|
+
"rels": [
|
|
238
|
+
"urn:collectiondoc:form:documentdelete"
|
|
239
|
+
],
|
|
240
|
+
"href-vars": {
|
|
241
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
|
242
|
+
},
|
|
243
|
+
"hints": {
|
|
244
|
+
"allow": [
|
|
245
|
+
"DELETE"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"href": "https://publish.pmp.io/files",
|
|
251
|
+
"title": "Upload a rich media file",
|
|
252
|
+
"rels": [
|
|
253
|
+
"urn:collectiondoc:form:mediaupload"
|
|
254
|
+
],
|
|
255
|
+
"href-vars": {
|
|
256
|
+
"submission": "http://docs.pmp.io/wiki/Media-File-Upload"
|
|
257
|
+
},
|
|
258
|
+
"hints": {
|
|
259
|
+
"allow": [
|
|
260
|
+
"POST"
|
|
261
|
+
],
|
|
262
|
+
"accept-post": [
|
|
263
|
+
"multipart/form-data"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"auth": [
|
|
269
|
+
{
|
|
270
|
+
"href": "https://api.pmp.io/auth/credentials",
|
|
271
|
+
"title": "List OAuth2 Credentials",
|
|
272
|
+
"rels": [
|
|
273
|
+
"urn:collectiondoc:form:listcredentials"
|
|
274
|
+
],
|
|
275
|
+
"hints": {
|
|
276
|
+
"allow": [
|
|
277
|
+
"GET"
|
|
278
|
+
],
|
|
279
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#testing-access"
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"href": "https://publish.pmp.io/auth/credentials",
|
|
284
|
+
"title": "Create OAuth2 Credentials",
|
|
285
|
+
"rels": [
|
|
286
|
+
"urn:collectiondoc:form:createcredentials"
|
|
287
|
+
],
|
|
288
|
+
"hints": {
|
|
289
|
+
"allow": [
|
|
290
|
+
"POST"
|
|
291
|
+
],
|
|
292
|
+
"accept-post": [
|
|
293
|
+
"application/x-www-form-urlencoded"
|
|
294
|
+
],
|
|
295
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#generating-credentials"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"href-template": "https://publish.pmp.io/auth/credentials/{client_id}",
|
|
300
|
+
"title": "Remove OAuth2 Credentials",
|
|
301
|
+
"rels": [
|
|
302
|
+
"urn:collectiondoc:form:removecredentials"
|
|
303
|
+
],
|
|
304
|
+
"hints": {
|
|
305
|
+
"allow": [
|
|
306
|
+
"DELETE"
|
|
307
|
+
],
|
|
308
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#removing-a-credential"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"href": "https://api.pmp.io/auth/access_token",
|
|
313
|
+
"title": "Issue OAuth2 Token",
|
|
314
|
+
"rels": [
|
|
315
|
+
"urn:collectiondoc:form:issuetoken"
|
|
316
|
+
],
|
|
317
|
+
"hints": {
|
|
318
|
+
"allow": [
|
|
319
|
+
"POST"
|
|
320
|
+
],
|
|
321
|
+
"accept-post": [
|
|
322
|
+
"application/x-www-form-urlencoded"
|
|
323
|
+
],
|
|
324
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#token-management"
|
|
325
|
+
}
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"href": "https://publish.pmp.io/auth/access_token",
|
|
329
|
+
"title": "Revoke OAuth2 Token",
|
|
330
|
+
"rels": [
|
|
331
|
+
"urn:collectiondoc:form:revoketoken"
|
|
332
|
+
],
|
|
333
|
+
"hints": {
|
|
334
|
+
"allow": [
|
|
335
|
+
"DELETE"
|
|
336
|
+
],
|
|
337
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#revoke-a-token"
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
}
|
|
368
342
|
}
|