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