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
data/spec/connection_spec.rb
CHANGED
@@ -29,7 +29,7 @@ describe PMP::Connection do
|
|
29
29
|
opts = @tc.process_options(user_agent:'user_agent', headers:{foo:'bar'})
|
30
30
|
opts[:headers][:foo].must_equal 'bar'
|
31
31
|
opts[:headers]['User-Agent'].must_equal 'user_agent'
|
32
|
-
opts[:headers]['Accept'].must_equal "application/vnd.
|
32
|
+
opts[:headers]['Accept'].must_equal "application/vnd.collection.doc+json"
|
33
33
|
end
|
34
34
|
|
35
35
|
end
|
data/spec/credential_spec.rb
CHANGED
@@ -23,16 +23,22 @@ describe PMP::Credential do
|
|
23
23
|
end
|
24
24
|
|
25
25
|
it "create a credential" do
|
26
|
+
root_doc = json_file(:collection_root)
|
27
|
+
|
28
|
+
stub_request(:get, "https://api-sandbox.pmp.io/").
|
29
|
+
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api-sandbox.pmp.io:443'}).
|
30
|
+
to_return(:status => 200, :body => root_doc, :headers => {})
|
31
|
+
|
26
32
|
response_body = {
|
27
33
|
client_id: "thisisnota-real-client-id-soverysorry",
|
28
34
|
client_secret: "thisisnotarealsecreteither",
|
29
35
|
token_expires_in: 1209600,
|
30
36
|
scope: "write"
|
31
37
|
}.to_json
|
32
|
-
|
33
|
-
stub_request(:post, "https://
|
38
|
+
|
39
|
+
stub_request(:post, "https://publish-sandbox.pmp.io/auth/credentials").
|
34
40
|
with(:body => {"label"=>"what", "scope"=>"read", "token_expires_in"=>"2592000"},
|
35
|
-
:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'
|
41
|
+
:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>'application/x-www-form-urlencoded', 'Host'=>'publish-sandbox.pmp.io:443'}).
|
36
42
|
to_return(:status => 200, :body => response_body, :headers => {})
|
37
43
|
|
38
44
|
new_creds = @credential.create(label: 'what')
|
@@ -63,7 +69,7 @@ describe PMP::Credential do
|
|
63
69
|
stub_request(:get, "https://api-sandbox.pmp.io/auth/credentials").
|
64
70
|
with(:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>'', 'Host'=>'api-sandbox.pmp.io:443'}).
|
65
71
|
to_return(:status => 200, :body => response_body, :headers => {})
|
66
|
-
|
72
|
+
|
67
73
|
all_creds = @credential.list
|
68
74
|
end
|
69
75
|
|
@@ -1,93 +1,82 @@
|
|
1
1
|
{
|
2
2
|
"version": "1.0",
|
3
|
-
"
|
4
|
-
"valid": {
|
5
|
-
"from": "2013-10-18T02:52:05+00:00",
|
6
|
-
"to": "3013-10-18T02:52:05+00:00"
|
7
|
-
},
|
8
|
-
"created": "2013-10-18T02:52:05+00:00",
|
9
|
-
"modified": "2013-10-18T02:52:05+00:00"
|
10
|
-
},
|
3
|
+
"href": "https://api-sandbox.pmp.io/docs",
|
11
4
|
"links": {
|
12
5
|
"item": [
|
13
6
|
{
|
14
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
7
|
+
"href": "https://api-sandbox.pmp.io/docs/a360c31b-58ec-46a0-8198-a92efa960188"
|
15
8
|
},
|
16
9
|
{
|
17
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
10
|
+
"href": "https://api-sandbox.pmp.io/docs/e77aa925-53e0-4cfd-8f16-db6146faef3e"
|
18
11
|
},
|
19
12
|
{
|
20
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
13
|
+
"href": "https://api-sandbox.pmp.io/docs/70809fac-82d1-4864-ae13-b58fb3543a6e"
|
21
14
|
},
|
22
15
|
{
|
23
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
16
|
+
"href": "https://api-sandbox.pmp.io/docs/3e53f16a-e086-4269-ba84-196cf21bf8a9"
|
24
17
|
},
|
25
18
|
{
|
26
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
19
|
+
"href": "https://api-sandbox.pmp.io/docs/0c9eeb61-dba5-431a-be8e-ad74c64aad2b"
|
27
20
|
},
|
28
21
|
{
|
29
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
22
|
+
"href": "https://api-sandbox.pmp.io/docs/a79b1983-bd6e-448c-ac6f-601dd5366f41"
|
30
23
|
},
|
31
24
|
{
|
32
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
25
|
+
"href": "https://api-sandbox.pmp.io/docs/5acb929e-1ce5-4d5a-a09d-6cb615c05b63"
|
33
26
|
},
|
34
27
|
{
|
35
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
28
|
+
"href": "https://api-sandbox.pmp.io/docs/c2e536cf-f885-493f-a5f1-34dc87d53943"
|
36
29
|
},
|
37
30
|
{
|
38
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
31
|
+
"href": "https://api-sandbox.pmp.io/docs/46f3e464-7f76-4529-8a69-fd20cb5047a0"
|
39
32
|
},
|
40
33
|
{
|
41
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
34
|
+
"href": "https://api-sandbox.pmp.io/docs/bb6e5679-c581-4db5-8b17-94365230d7e2"
|
42
35
|
}
|
43
36
|
],
|
44
37
|
"navigation": [
|
45
38
|
{
|
46
39
|
"href": "https://api-sandbox.pmp.io/docs?",
|
47
40
|
"rels": [
|
48
|
-
"
|
41
|
+
"self"
|
49
42
|
],
|
50
|
-
"totalitems":
|
51
|
-
"totalpages":
|
43
|
+
"totalitems": 66380,
|
44
|
+
"totalpages": 6638,
|
52
45
|
"pagenum": 1
|
53
46
|
},
|
54
47
|
{
|
55
48
|
"href": "https://api-sandbox.pmp.io/docs?offset=10",
|
56
49
|
"rels": [
|
57
|
-
"
|
50
|
+
"next"
|
58
51
|
],
|
59
52
|
"pagenum": 2
|
60
53
|
},
|
61
54
|
{
|
62
55
|
"href": "https://api-sandbox.pmp.io/docs?",
|
63
56
|
"rels": [
|
64
|
-
"
|
57
|
+
"first"
|
65
58
|
],
|
66
59
|
"pagenum": 1
|
67
60
|
},
|
68
61
|
{
|
69
|
-
"href": "https://api-sandbox.pmp.io/docs?offset=
|
62
|
+
"href": "https://api-sandbox.pmp.io/docs?offset=66380",
|
70
63
|
"rels": [
|
71
|
-
"
|
64
|
+
"last"
|
72
65
|
],
|
73
|
-
"pagenum":
|
66
|
+
"pagenum": 6638
|
74
67
|
}
|
75
68
|
],
|
76
69
|
"query": [
|
77
70
|
{
|
78
|
-
"href-template": "https://api-sandbox.pmp.io/
|
79
|
-
"title": "
|
71
|
+
"href-template": "https://api-sandbox.pmp.io/docs{/guid}{?limit,offset}",
|
72
|
+
"title": "Access documents",
|
80
73
|
"rels": [
|
81
|
-
"urn:
|
74
|
+
"urn:collectiondoc:hreftpl:docs"
|
82
75
|
],
|
83
76
|
"href-vars": {
|
84
|
-
"
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"collection": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
|
88
|
-
"text": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
|
89
|
-
"searchsort": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
|
90
|
-
"has": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
|
77
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents",
|
78
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
79
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset"
|
91
80
|
},
|
92
81
|
"hints": {
|
93
82
|
"allow": [
|
@@ -96,18 +85,28 @@
|
|
96
85
|
}
|
97
86
|
},
|
98
87
|
{
|
99
|
-
"href-template": "https://api-sandbox.pmp.io/
|
100
|
-
"title": "Query for
|
88
|
+
"href-template": "https://api-sandbox.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
|
89
|
+
"title": "Query for documents",
|
101
90
|
"rels": [
|
102
|
-
"urn:
|
91
|
+
"urn:collectiondoc:query:docs"
|
103
92
|
],
|
104
93
|
"href-vars": {
|
105
|
-
"
|
106
|
-
"
|
107
|
-
"
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
94
|
+
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
95
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
96
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
97
|
+
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
98
|
+
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
99
|
+
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
100
|
+
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
101
|
+
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
102
|
+
"language": "http://docs.pmp.io/wiki/Content-Retrieval#language",
|
103
|
+
"profile": "http://docs.pmp.io/wiki/Content-Retrieval#profile",
|
104
|
+
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
105
|
+
"has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
|
106
|
+
"distributor": "http://docs.pmp.io/wiki/Content-Retrieval#distributor",
|
107
|
+
"distributorgroup": "http://docs.pmp.io/wiki/Content-Retrieval#distributorgroup",
|
108
|
+
"author": "http://docs.pmp.io/wiki/Content-Retrieval#author",
|
109
|
+
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
111
110
|
},
|
112
111
|
"hints": {
|
113
112
|
"allow": [
|
@@ -119,10 +118,34 @@
|
|
119
118
|
"href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
|
120
119
|
"title": "Access profiles",
|
121
120
|
"rels": [
|
122
|
-
"urn:
|
121
|
+
"urn:collectiondoc:hreftpl:profiles"
|
123
122
|
],
|
124
123
|
"href-vars": {
|
125
|
-
"guid": "
|
124
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
125
|
+
},
|
126
|
+
"hints": {
|
127
|
+
"allow": [
|
128
|
+
"GET"
|
129
|
+
]
|
130
|
+
}
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"href-template": "https://api-sandbox.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
134
|
+
"title": "Query for profiles",
|
135
|
+
"rels": [
|
136
|
+
"urn:collectiondoc:query:profiles"
|
137
|
+
],
|
138
|
+
"href-vars": {
|
139
|
+
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
140
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
141
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
142
|
+
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
143
|
+
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
144
|
+
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
145
|
+
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
146
|
+
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
147
|
+
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
148
|
+
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
126
149
|
},
|
127
150
|
"hints": {
|
128
151
|
"allow": [
|
@@ -134,28 +157,58 @@
|
|
134
157
|
"href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
|
135
158
|
"title": "Access schemas",
|
136
159
|
"rels": [
|
137
|
-
"urn:
|
160
|
+
"urn:collectiondoc:hreftpl:schemas"
|
138
161
|
],
|
139
162
|
"href-vars": {
|
140
|
-
"guid": "
|
163
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
141
164
|
},
|
142
165
|
"hints": {
|
143
166
|
"allow": [
|
144
167
|
"GET"
|
145
168
|
]
|
169
|
+
}
|
170
|
+
},
|
171
|
+
{
|
172
|
+
"href-template": "https://api-sandbox.pmp.io/schemas{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
173
|
+
"title": "Query for schemas",
|
174
|
+
"rels": [
|
175
|
+
"urn:collectiondoc:query:schemas"
|
176
|
+
],
|
177
|
+
"href-vars": {
|
178
|
+
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
179
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
180
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
181
|
+
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
182
|
+
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
183
|
+
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
184
|
+
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
185
|
+
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
186
|
+
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
187
|
+
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
146
188
|
},
|
147
|
-
"
|
189
|
+
"hints": {
|
190
|
+
"allow": [
|
191
|
+
"GET"
|
192
|
+
]
|
193
|
+
}
|
148
194
|
},
|
149
195
|
{
|
150
|
-
"href-template": "https://api-sandbox.pmp.io/
|
151
|
-
"title": "
|
196
|
+
"href-template": "https://api-sandbox.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
197
|
+
"title": "Query for users",
|
152
198
|
"rels": [
|
153
|
-
"urn:
|
199
|
+
"urn:collectiondoc:query:users"
|
154
200
|
],
|
155
201
|
"href-vars": {
|
156
|
-
"guid": "
|
157
|
-
"limit": "
|
158
|
-
"offset": "
|
202
|
+
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
203
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
204
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
205
|
+
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
206
|
+
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
207
|
+
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
208
|
+
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
209
|
+
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
210
|
+
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
211
|
+
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
159
212
|
},
|
160
213
|
"hints": {
|
161
214
|
"allow": [
|
@@ -164,26 +217,23 @@
|
|
164
217
|
}
|
165
218
|
},
|
166
219
|
{
|
167
|
-
"href-template": "https://api-sandbox.pmp.io/
|
168
|
-
"title": "Query for
|
220
|
+
"href-template": "https://api-sandbox.pmp.io/groups{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,has,text}",
|
221
|
+
"title": "Query for groups",
|
169
222
|
"rels": [
|
170
|
-
"urn:
|
223
|
+
"urn:collectiondoc:query:groups"
|
171
224
|
],
|
172
225
|
"href-vars": {
|
173
|
-
"
|
174
|
-
"
|
175
|
-
"
|
176
|
-
"
|
177
|
-
"
|
178
|
-
"
|
179
|
-
"
|
180
|
-
"
|
181
|
-
"
|
182
|
-
"
|
183
|
-
"
|
184
|
-
"enddate": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
|
185
|
-
"profile": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
|
186
|
-
"language": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
|
226
|
+
"guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
|
227
|
+
"limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
|
228
|
+
"offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
|
229
|
+
"searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
|
230
|
+
"startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
|
231
|
+
"enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
|
232
|
+
"writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
|
233
|
+
"tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
|
234
|
+
"collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
|
235
|
+
"has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
|
236
|
+
"text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
|
187
237
|
},
|
188
238
|
"hints": {
|
189
239
|
"allow": [
|
@@ -195,7 +245,7 @@
|
|
195
245
|
"href": "https://api-sandbox.pmp.io/guids",
|
196
246
|
"title": "Generate guids",
|
197
247
|
"rels": [
|
198
|
-
"urn:
|
248
|
+
"urn:collectiondoc:query:guids"
|
199
249
|
],
|
200
250
|
"hints": {
|
201
251
|
"allow": [
|
@@ -213,70 +263,70 @@
|
|
213
263
|
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
214
264
|
"title": "Document Save",
|
215
265
|
"rels": [
|
216
|
-
"urn:
|
266
|
+
"urn:collectiondoc:form:documentsave"
|
217
267
|
],
|
218
268
|
"href-vars": {
|
219
|
-
"guid": "
|
269
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
220
270
|
},
|
221
271
|
"hints": {
|
222
272
|
"formats": [
|
223
|
-
"application/vnd.
|
273
|
+
"application/vnd.collection.doc+json"
|
224
274
|
],
|
225
275
|
"allow": [
|
226
276
|
"PUT",
|
227
277
|
"DELETE"
|
228
278
|
],
|
229
|
-
"docs": "
|
279
|
+
"docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
|
230
280
|
}
|
231
281
|
},
|
232
282
|
{
|
233
283
|
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
234
284
|
"title": "Profile Save",
|
235
285
|
"rels": [
|
236
|
-
"urn:
|
286
|
+
"urn:collectiondoc:form:profilesave"
|
237
287
|
],
|
238
288
|
"href-vars": {
|
239
|
-
"guid": "
|
289
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
240
290
|
},
|
241
291
|
"hints": {
|
242
292
|
"formats": [
|
243
|
-
"application/vnd.
|
293
|
+
"application/vnd.collection.doc+json"
|
244
294
|
],
|
245
295
|
"allow": [
|
246
296
|
"PUT",
|
247
297
|
"DELETE"
|
248
298
|
],
|
249
|
-
"docs": "
|
299
|
+
"docs": "http://docs.pmp.io/wiki/Profile-profile"
|
250
300
|
}
|
251
301
|
},
|
252
302
|
{
|
253
303
|
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
254
304
|
"title": "Schema Save",
|
255
305
|
"rels": [
|
256
|
-
"urn:
|
306
|
+
"urn:collectiondoc:form:schemasave"
|
257
307
|
],
|
258
308
|
"href-vars": {
|
259
|
-
"guid": "
|
309
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
260
310
|
},
|
261
311
|
"hints": {
|
262
312
|
"formats": [
|
263
|
-
"application/
|
313
|
+
"application/vnd.collection.doc+json"
|
264
314
|
],
|
265
315
|
"allow": [
|
266
316
|
"PUT",
|
267
317
|
"DELETE"
|
268
318
|
],
|
269
|
-
"docs": "http://
|
319
|
+
"docs": "http://docs.pmp.io/wiki/Schema-profile"
|
270
320
|
}
|
271
321
|
},
|
272
322
|
{
|
273
323
|
"href": "https://publish-sandbox.pmp.io/files",
|
274
324
|
"title": "Upload a rich media file",
|
275
325
|
"rels": [
|
276
|
-
"urn:
|
326
|
+
"urn:collectiondoc:form:mediaupload"
|
277
327
|
],
|
278
328
|
"href-vars": {
|
279
|
-
"submission": "
|
329
|
+
"submission": "http://docs.pmp.io/wiki/Media-File-Upload"
|
280
330
|
},
|
281
331
|
"hints": {
|
282
332
|
"allow": [
|
@@ -287,241 +337,172 @@
|
|
287
337
|
]
|
288
338
|
}
|
289
339
|
}
|
340
|
+
],
|
341
|
+
"auth": [
|
342
|
+
{
|
343
|
+
"href": "https://publish-sandbox.pmp.io/auth/credentials",
|
344
|
+
"title": "Create OAuth2 Credentials",
|
345
|
+
"rels": [
|
346
|
+
"urn:collectiondoc:form:createcredentials"
|
347
|
+
],
|
348
|
+
"hints": {
|
349
|
+
"allow": [
|
350
|
+
"POST"
|
351
|
+
],
|
352
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#generating-credentials"
|
353
|
+
}
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"href-template": "https://publish-sandbox.pmp.io/auth/credentials/{client_id}",
|
357
|
+
"title": "Remove OAuth2 Credentials",
|
358
|
+
"rels": [
|
359
|
+
"urn:collectiondoc:form:removecredentials"
|
360
|
+
],
|
361
|
+
"hints": {
|
362
|
+
"allow": [
|
363
|
+
"DELETE"
|
364
|
+
],
|
365
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#removing-a-credential"
|
366
|
+
}
|
367
|
+
},
|
368
|
+
{
|
369
|
+
"href": "https://api-sandbox.pmp.io/auth/access_token",
|
370
|
+
"title": "Issue OAuth2 Token",
|
371
|
+
"rels": [
|
372
|
+
"urn:collectiondoc:form:issuetoken"
|
373
|
+
],
|
374
|
+
"hints": {
|
375
|
+
"allow": [
|
376
|
+
"POST"
|
377
|
+
],
|
378
|
+
"accept-post": [
|
379
|
+
"application/x-www-form-urlencoded"
|
380
|
+
],
|
381
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#token-management"
|
382
|
+
}
|
383
|
+
},
|
384
|
+
{
|
385
|
+
"href": "https://publish-sandbox.pmp.io/auth/access_token",
|
386
|
+
"title": "Revoke OAuth2 Token",
|
387
|
+
"rels": [
|
388
|
+
"urn:collectiondoc:form:revoketoken"
|
389
|
+
],
|
390
|
+
"hints": {
|
391
|
+
"allow": [
|
392
|
+
"DELETE"
|
393
|
+
],
|
394
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#revoke-a-token"
|
395
|
+
}
|
396
|
+
}
|
290
397
|
]
|
291
398
|
},
|
292
399
|
"items": [
|
293
400
|
{
|
294
401
|
"version": "1.0",
|
402
|
+
"href": "https://api-sandbox.pmp.io/docs/a360c31b-58ec-46a0-8198-a92efa960188",
|
295
403
|
"attributes": {
|
296
404
|
"valid": {
|
297
|
-
"from": "
|
298
|
-
"to": "
|
405
|
+
"from": "2014-11-13T14:43:38+00:00",
|
406
|
+
"to": "3014-08-05T13:43:40+00:00"
|
299
407
|
},
|
300
|
-
"created": "
|
301
|
-
"modified": "
|
302
|
-
"title": "
|
303
|
-
"
|
304
|
-
"
|
408
|
+
"created": "2014-08-05T13:43:40+00:00",
|
409
|
+
"modified": "2014-08-05T13:43:40+00:00",
|
410
|
+
"title": "eHG3DgJbKekW7S1qSLlS",
|
411
|
+
"guid": "a360c31b-58ec-46a0-8198-a92efa960188",
|
412
|
+
"published": "2014-11-13T14:43:38+00:00"
|
305
413
|
},
|
306
414
|
"links": {
|
307
|
-
"
|
415
|
+
"profile": [
|
308
416
|
{
|
309
|
-
"href": "https://api-sandbox.pmp.io/
|
417
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
310
418
|
}
|
311
419
|
],
|
312
|
-
"
|
420
|
+
"creator": [
|
313
421
|
{
|
314
|
-
"href": "https://api-sandbox.pmp.io/docs
|
315
|
-
"rels": [
|
316
|
-
"urn:pmp:navigation:self"
|
317
|
-
]
|
422
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
318
423
|
}
|
319
424
|
],
|
320
|
-
"
|
321
|
-
|
322
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
323
|
-
"title": "Document Save",
|
324
|
-
"rels": [
|
325
|
-
"urn:pmp:form:documentsave"
|
326
|
-
],
|
327
|
-
"href-vars": {
|
328
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
329
|
-
},
|
330
|
-
"hints": {
|
331
|
-
"formats": [
|
332
|
-
"application/vnd.pmp.collection.doc+json"
|
333
|
-
],
|
334
|
-
"allow": [
|
335
|
-
"PUT",
|
336
|
-
"DELETE"
|
337
|
-
],
|
338
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
339
|
-
}
|
340
|
-
},
|
341
|
-
{
|
342
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
343
|
-
"title": "Profile Save",
|
344
|
-
"rels": [
|
345
|
-
"urn:pmp:form:profilesave"
|
346
|
-
],
|
347
|
-
"href-vars": {
|
348
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
349
|
-
},
|
350
|
-
"hints": {
|
351
|
-
"formats": [
|
352
|
-
"application/vnd.pmp.collection.doc+json"
|
353
|
-
],
|
354
|
-
"allow": [
|
355
|
-
"PUT",
|
356
|
-
"DELETE"
|
357
|
-
],
|
358
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
359
|
-
}
|
360
|
-
},
|
361
|
-
{
|
362
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
363
|
-
"title": "Schema Save",
|
364
|
-
"rels": [
|
365
|
-
"urn:pmp:form:schemasave"
|
366
|
-
],
|
367
|
-
"href-vars": {
|
368
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
369
|
-
},
|
370
|
-
"hints": {
|
371
|
-
"formats": [
|
372
|
-
"application/schema+json"
|
373
|
-
],
|
374
|
-
"allow": [
|
375
|
-
"PUT",
|
376
|
-
"DELETE"
|
377
|
-
],
|
378
|
-
"docs": "http://json-schema.org/"
|
379
|
-
}
|
380
|
-
},
|
425
|
+
"item": [],
|
426
|
+
"navigation": [
|
381
427
|
{
|
382
|
-
"href": "https://
|
383
|
-
"title": "Upload a rich media file",
|
428
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=a360c31b-58ec-46a0-8198-a92efa960188",
|
384
429
|
"rels": [
|
385
|
-
"
|
386
|
-
]
|
387
|
-
"href-vars": {
|
388
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
389
|
-
},
|
390
|
-
"hints": {
|
391
|
-
"allow": [
|
392
|
-
"POST"
|
393
|
-
],
|
394
|
-
"accept-post": [
|
395
|
-
"multipart/form-data"
|
396
|
-
]
|
397
|
-
}
|
430
|
+
"self"
|
431
|
+
]
|
398
432
|
}
|
399
433
|
]
|
400
434
|
}
|
401
435
|
},
|
402
436
|
{
|
403
437
|
"version": "1.0",
|
438
|
+
"href": "https://api-sandbox.pmp.io/docs/e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
404
439
|
"attributes": {
|
405
440
|
"valid": {
|
406
|
-
"from": "
|
407
|
-
"to": "
|
441
|
+
"from": "2014-08-05T16:44:08+00:00",
|
442
|
+
"to": "3014-08-05T16:44:08+00:00"
|
408
443
|
},
|
409
|
-
"created": "
|
410
|
-
"modified": "
|
411
|
-
"
|
412
|
-
"
|
444
|
+
"created": "2014-08-05T16:44:08+00:00",
|
445
|
+
"modified": "2014-08-05T16:44:09+00:00",
|
446
|
+
"hreflang": "en",
|
447
|
+
"guid": "e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
448
|
+
"title": "image-2.jpg",
|
449
|
+
"published": "2014-08-05T16:38:55+00:00",
|
450
|
+
"byline": "Anonymous"
|
413
451
|
},
|
414
452
|
"links": {
|
415
|
-
"
|
453
|
+
"profile": [
|
416
454
|
{
|
417
|
-
"href": "https://api-sandbox.pmp.io/
|
455
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
418
456
|
}
|
419
457
|
],
|
420
|
-
"
|
458
|
+
"alternate": [
|
421
459
|
{
|
422
|
-
"href": "
|
423
|
-
"rels": [
|
424
|
-
"urn:pmp:navigation:self"
|
425
|
-
]
|
460
|
+
"href": "/file/8"
|
426
461
|
}
|
427
462
|
],
|
428
|
-
"
|
463
|
+
"enclosure": [
|
429
464
|
{
|
430
|
-
"href
|
431
|
-
"
|
432
|
-
|
433
|
-
"
|
434
|
-
|
435
|
-
"href-vars": {
|
436
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
437
|
-
},
|
438
|
-
"hints": {
|
439
|
-
"formats": [
|
440
|
-
"application/vnd.pmp.collection.doc+json"
|
441
|
-
],
|
442
|
-
"allow": [
|
443
|
-
"PUT",
|
444
|
-
"DELETE"
|
445
|
-
],
|
446
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
447
|
-
}
|
448
|
-
},
|
449
|
-
{
|
450
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
451
|
-
"title": "Profile Save",
|
452
|
-
"rels": [
|
453
|
-
"urn:pmp:form:profilesave"
|
454
|
-
],
|
455
|
-
"href-vars": {
|
456
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
465
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/557860/image-2.jpg",
|
466
|
+
"meta": {
|
467
|
+
"crop": "primary",
|
468
|
+
"height": 60,
|
469
|
+
"width": 80
|
457
470
|
},
|
458
|
-
"
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
"allow": [
|
463
|
-
"PUT",
|
464
|
-
"DELETE"
|
465
|
-
],
|
466
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
467
|
-
}
|
468
|
-
},
|
471
|
+
"type": "image/jpeg"
|
472
|
+
}
|
473
|
+
],
|
474
|
+
"creator": [
|
469
475
|
{
|
470
|
-
"href
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
"href-vars": {
|
476
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
477
|
-
},
|
478
|
-
"hints": {
|
479
|
-
"formats": [
|
480
|
-
"application/schema+json"
|
481
|
-
],
|
482
|
-
"allow": [
|
483
|
-
"PUT",
|
484
|
-
"DELETE"
|
485
|
-
],
|
486
|
-
"docs": "http://json-schema.org/"
|
487
|
-
}
|
488
|
-
},
|
476
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
477
|
+
}
|
478
|
+
],
|
479
|
+
"item": [],
|
480
|
+
"navigation": [
|
489
481
|
{
|
490
|
-
"href": "https://
|
491
|
-
"title": "Upload a rich media file",
|
482
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
492
483
|
"rels": [
|
493
|
-
"
|
494
|
-
]
|
495
|
-
"href-vars": {
|
496
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
497
|
-
},
|
498
|
-
"hints": {
|
499
|
-
"allow": [
|
500
|
-
"POST"
|
501
|
-
],
|
502
|
-
"accept-post": [
|
503
|
-
"multipart/form-data"
|
504
|
-
]
|
505
|
-
}
|
484
|
+
"self"
|
485
|
+
]
|
506
486
|
}
|
507
487
|
]
|
508
488
|
}
|
509
489
|
},
|
510
490
|
{
|
511
491
|
"version": "1.0",
|
492
|
+
"href": "https://api-sandbox.pmp.io/docs/70809fac-82d1-4864-ae13-b58fb3543a6e",
|
512
493
|
"attributes": {
|
513
494
|
"valid": {
|
514
|
-
"from": "
|
515
|
-
"to": "
|
495
|
+
"from": "2014-08-05T16:49:09+00:00",
|
496
|
+
"to": "3014-08-05T16:49:09+00:00"
|
516
497
|
},
|
517
|
-
"created": "
|
518
|
-
"modified": "
|
498
|
+
"created": "2014-08-05T16:49:09+00:00",
|
499
|
+
"modified": "2014-08-05T16:49:09+00:00",
|
519
500
|
"hreflang": "en",
|
520
|
-
"guid": "
|
521
|
-
"title": "
|
522
|
-
"published": "
|
523
|
-
"
|
524
|
-
"contentencoded": "
|
501
|
+
"guid": "70809fac-82d1-4864-ae13-b58fb3543a6e",
|
502
|
+
"title": "PMPAPI Simpletest test: 12:49:07",
|
503
|
+
"published": "2014-08-05T16:38:55+00:00",
|
504
|
+
"byline": "po9KgBZO",
|
505
|
+
"contentencoded": "cUmWxBQKcigEnDOETqSnAb5R4E0Ou0AN"
|
525
506
|
},
|
526
507
|
"links": {
|
527
508
|
"profile": [
|
@@ -531,122 +512,104 @@
|
|
531
512
|
],
|
532
513
|
"alternate": [
|
533
514
|
{
|
534
|
-
"href": "
|
535
|
-
"hreflang": "en",
|
536
|
-
"type": "text/html"
|
515
|
+
"href": "/node/1"
|
537
516
|
}
|
538
517
|
],
|
539
|
-
"
|
518
|
+
"item": [
|
540
519
|
{
|
541
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
520
|
+
"href": "https://api-sandbox.pmp.io/docs/0c9eeb61-dba5-431a-be8e-ad74c64aad2b"
|
542
521
|
}
|
543
522
|
],
|
544
|
-
"
|
523
|
+
"creator": [
|
545
524
|
{
|
546
|
-
"href": "https://api-sandbox.pmp.io/docs
|
547
|
-
"rels": [
|
548
|
-
"urn:pmp:navigation:self"
|
549
|
-
]
|
525
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
550
526
|
}
|
551
527
|
],
|
552
|
-
"
|
528
|
+
"navigation": [
|
553
529
|
{
|
554
|
-
"href
|
555
|
-
"title": "Document Save",
|
530
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=70809fac-82d1-4864-ae13-b58fb3543a6e",
|
556
531
|
"rels": [
|
557
|
-
"
|
532
|
+
"self"
|
558
533
|
],
|
559
|
-
"
|
560
|
-
|
534
|
+
"totalitems": 1,
|
535
|
+
"totalpages": 1,
|
536
|
+
"pagenum": 1
|
537
|
+
}
|
538
|
+
]
|
539
|
+
},
|
540
|
+
"items": [
|
541
|
+
{
|
542
|
+
"version": "1.0",
|
543
|
+
"href": "https://api-sandbox.pmp.io/docs/0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
544
|
+
"attributes": {
|
545
|
+
"valid": {
|
546
|
+
"from": "2014-08-05T16:49:05+00:00",
|
547
|
+
"to": "3014-08-05T16:49:05+00:00"
|
561
548
|
},
|
562
|
-
"
|
563
|
-
|
564
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
568
|
-
|
569
|
-
],
|
570
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
571
|
-
}
|
549
|
+
"created": "2014-08-05T16:49:05+00:00",
|
550
|
+
"modified": "2014-08-05T16:49:06+00:00",
|
551
|
+
"hreflang": "en",
|
552
|
+
"guid": "0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
553
|
+
"title": "image-test.jpg",
|
554
|
+
"published": "2014-08-05T16:38:55+00:00",
|
555
|
+
"byline": "Anonymous"
|
572
556
|
},
|
573
|
-
{
|
574
|
-
"
|
575
|
-
|
576
|
-
|
577
|
-
|
557
|
+
"links": {
|
558
|
+
"profile": [
|
559
|
+
{
|
560
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
561
|
+
}
|
578
562
|
],
|
579
|
-
"
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
"formats": [
|
584
|
-
"application/vnd.pmp.collection.doc+json"
|
585
|
-
],
|
586
|
-
"allow": [
|
587
|
-
"PUT",
|
588
|
-
"DELETE"
|
589
|
-
],
|
590
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
591
|
-
}
|
592
|
-
},
|
593
|
-
{
|
594
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
595
|
-
"title": "Schema Save",
|
596
|
-
"rels": [
|
597
|
-
"urn:pmp:form:schemasave"
|
563
|
+
"alternate": [
|
564
|
+
{
|
565
|
+
"href": "/file/9"
|
566
|
+
}
|
598
567
|
],
|
599
|
-
"
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
"
|
608
|
-
|
609
|
-
],
|
610
|
-
"docs": "http://json-schema.org/"
|
611
|
-
}
|
612
|
-
},
|
613
|
-
{
|
614
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
615
|
-
"title": "Upload a rich media file",
|
616
|
-
"rels": [
|
617
|
-
"urn:pmp:form:mediaupload"
|
568
|
+
"enclosure": [
|
569
|
+
{
|
570
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/989728/image-test.jpg",
|
571
|
+
"meta": {
|
572
|
+
"crop": "primary",
|
573
|
+
"height": 20,
|
574
|
+
"width": 40
|
575
|
+
},
|
576
|
+
"type": "image/jpeg"
|
577
|
+
}
|
618
578
|
],
|
619
|
-
"
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
"
|
628
|
-
|
629
|
-
|
579
|
+
"creator": [
|
580
|
+
{
|
581
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
582
|
+
}
|
583
|
+
],
|
584
|
+
"item": [],
|
585
|
+
"navigation": [
|
586
|
+
{
|
587
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
588
|
+
"rels": [
|
589
|
+
"self"
|
590
|
+
]
|
591
|
+
}
|
592
|
+
]
|
630
593
|
}
|
631
|
-
|
632
|
-
|
594
|
+
}
|
595
|
+
]
|
633
596
|
},
|
634
597
|
{
|
635
598
|
"version": "1.0",
|
599
|
+
"href": "https://api-sandbox.pmp.io/docs/3e53f16a-e086-4269-ba84-196cf21bf8a9",
|
636
600
|
"attributes": {
|
637
601
|
"valid": {
|
638
|
-
"from": "
|
639
|
-
"to": "
|
602
|
+
"from": "2014-08-05T16:44:12+00:00",
|
603
|
+
"to": "3014-08-05T16:44:12+00:00"
|
640
604
|
},
|
641
|
-
"created": "
|
642
|
-
"modified": "
|
643
|
-
"
|
644
|
-
"
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
"
|
649
|
-
"published": "2013-10-12T19:44:12+00:00"
|
605
|
+
"created": "2014-08-05T16:44:12+00:00",
|
606
|
+
"modified": "2014-08-05T16:44:12+00:00",
|
607
|
+
"hreflang": "en",
|
608
|
+
"guid": "3e53f16a-e086-4269-ba84-196cf21bf8a9",
|
609
|
+
"title": "PMPAPI Simpletest test: 12:44:10",
|
610
|
+
"published": "2014-08-05T16:38:55+00:00",
|
611
|
+
"byline": "tOG9x5mk",
|
612
|
+
"contentencoded": "n43BRp1rmlo0FNDzPFnRd03nR20w1Orr"
|
650
613
|
},
|
651
614
|
"links": {
|
652
615
|
"profile": [
|
@@ -654,265 +617,158 @@
|
|
654
617
|
"href": "https://api-sandbox.pmp.io/profiles/story"
|
655
618
|
}
|
656
619
|
],
|
657
|
-
"
|
658
|
-
{
|
659
|
-
"href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
|
660
|
-
},
|
620
|
+
"alternate": [
|
661
621
|
{
|
662
|
-
"href": "
|
622
|
+
"href": "/node/1"
|
663
623
|
}
|
664
624
|
],
|
665
|
-
"
|
625
|
+
"item": [
|
666
626
|
{
|
667
|
-
"href": "https://api-sandbox.pmp.io/
|
668
|
-
"operation": "read",
|
669
|
-
"blacklist": true
|
627
|
+
"href": "https://api-sandbox.pmp.io/docs/e77aa925-53e0-4cfd-8f16-db6146faef3e"
|
670
628
|
}
|
671
629
|
],
|
672
630
|
"creator": [
|
673
631
|
{
|
674
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
632
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
675
633
|
}
|
676
634
|
],
|
677
635
|
"navigation": [
|
678
636
|
{
|
679
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=
|
637
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=3e53f16a-e086-4269-ba84-196cf21bf8a9",
|
680
638
|
"rels": [
|
681
|
-
"
|
682
|
-
]
|
683
|
-
}
|
684
|
-
],
|
685
|
-
"edit": [
|
686
|
-
{
|
687
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
688
|
-
"title": "Document Save",
|
689
|
-
"rels": [
|
690
|
-
"urn:pmp:form:documentsave"
|
639
|
+
"self"
|
691
640
|
],
|
692
|
-
"
|
693
|
-
|
641
|
+
"totalitems": 1,
|
642
|
+
"totalpages": 1,
|
643
|
+
"pagenum": 1
|
644
|
+
}
|
645
|
+
]
|
646
|
+
},
|
647
|
+
"items": [
|
648
|
+
{
|
649
|
+
"version": "1.0",
|
650
|
+
"href": "https://api-sandbox.pmp.io/docs/e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
651
|
+
"attributes": {
|
652
|
+
"valid": {
|
653
|
+
"from": "2014-08-05T16:44:08+00:00",
|
654
|
+
"to": "3014-08-05T16:44:08+00:00"
|
694
655
|
},
|
695
|
-
"
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
701
|
-
|
702
|
-
],
|
703
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
704
|
-
}
|
656
|
+
"created": "2014-08-05T16:44:08+00:00",
|
657
|
+
"modified": "2014-08-05T16:44:09+00:00",
|
658
|
+
"hreflang": "en",
|
659
|
+
"guid": "e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
660
|
+
"title": "image-2.jpg",
|
661
|
+
"published": "2014-08-05T16:38:55+00:00",
|
662
|
+
"byline": "Anonymous"
|
705
663
|
},
|
706
|
-
{
|
707
|
-
"
|
708
|
-
|
709
|
-
|
710
|
-
|
664
|
+
"links": {
|
665
|
+
"profile": [
|
666
|
+
{
|
667
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
668
|
+
}
|
711
669
|
],
|
712
|
-
"
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
"formats": [
|
717
|
-
"application/vnd.pmp.collection.doc+json"
|
718
|
-
],
|
719
|
-
"allow": [
|
720
|
-
"PUT",
|
721
|
-
"DELETE"
|
722
|
-
],
|
723
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
724
|
-
}
|
725
|
-
},
|
726
|
-
{
|
727
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
728
|
-
"title": "Schema Save",
|
729
|
-
"rels": [
|
730
|
-
"urn:pmp:form:schemasave"
|
670
|
+
"alternate": [
|
671
|
+
{
|
672
|
+
"href": "/file/8"
|
673
|
+
}
|
731
674
|
],
|
732
|
-
"
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
"
|
741
|
-
|
742
|
-
],
|
743
|
-
"docs": "http://json-schema.org/"
|
744
|
-
}
|
745
|
-
},
|
746
|
-
{
|
747
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
748
|
-
"title": "Upload a rich media file",
|
749
|
-
"rels": [
|
750
|
-
"urn:pmp:form:mediaupload"
|
675
|
+
"enclosure": [
|
676
|
+
{
|
677
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/557860/image-2.jpg",
|
678
|
+
"meta": {
|
679
|
+
"crop": "primary",
|
680
|
+
"height": 60,
|
681
|
+
"width": 80
|
682
|
+
},
|
683
|
+
"type": "image/jpeg"
|
684
|
+
}
|
751
685
|
],
|
752
|
-
"
|
753
|
-
|
754
|
-
|
755
|
-
|
756
|
-
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
"
|
761
|
-
|
762
|
-
|
686
|
+
"creator": [
|
687
|
+
{
|
688
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
689
|
+
}
|
690
|
+
],
|
691
|
+
"item": [],
|
692
|
+
"navigation": [
|
693
|
+
{
|
694
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
695
|
+
"rels": [
|
696
|
+
"self"
|
697
|
+
]
|
698
|
+
}
|
699
|
+
]
|
763
700
|
}
|
764
|
-
|
765
|
-
|
701
|
+
}
|
702
|
+
]
|
766
703
|
},
|
767
704
|
{
|
768
705
|
"version": "1.0",
|
706
|
+
"href": "https://api-sandbox.pmp.io/docs/0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
769
707
|
"attributes": {
|
770
708
|
"valid": {
|
771
|
-
"from": "
|
772
|
-
"to": "
|
709
|
+
"from": "2014-08-05T16:49:05+00:00",
|
710
|
+
"to": "3014-08-05T16:49:05+00:00"
|
773
711
|
},
|
774
|
-
"created": "
|
775
|
-
"modified": "
|
776
|
-
"
|
777
|
-
"
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
"title": "Pri - The World - Sample Document 376310831",
|
782
|
-
"published": "2013-10-12T19:42:31+00:00"
|
712
|
+
"created": "2014-08-05T16:49:05+00:00",
|
713
|
+
"modified": "2014-08-05T16:49:06+00:00",
|
714
|
+
"hreflang": "en",
|
715
|
+
"guid": "0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
716
|
+
"title": "image-test.jpg",
|
717
|
+
"published": "2014-08-05T16:38:55+00:00",
|
718
|
+
"byline": "Anonymous"
|
783
719
|
},
|
784
720
|
"links": {
|
785
721
|
"profile": [
|
786
722
|
{
|
787
|
-
"href": "https://api-sandbox.pmp.io/profiles/
|
723
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
788
724
|
}
|
789
725
|
],
|
790
|
-
"
|
791
|
-
{
|
792
|
-
"href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
|
793
|
-
},
|
726
|
+
"alternate": [
|
794
727
|
{
|
795
|
-
"href": "
|
728
|
+
"href": "/file/9"
|
796
729
|
}
|
797
730
|
],
|
798
|
-
"
|
731
|
+
"enclosure": [
|
799
732
|
{
|
800
|
-
"href": "
|
801
|
-
"
|
802
|
-
|
733
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/989728/image-test.jpg",
|
734
|
+
"meta": {
|
735
|
+
"crop": "primary",
|
736
|
+
"height": 20,
|
737
|
+
"width": 40
|
738
|
+
},
|
739
|
+
"type": "image/jpeg"
|
803
740
|
}
|
804
741
|
],
|
805
742
|
"creator": [
|
806
743
|
{
|
807
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
744
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
808
745
|
}
|
809
746
|
],
|
747
|
+
"item": [],
|
810
748
|
"navigation": [
|
811
749
|
{
|
812
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=
|
750
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
813
751
|
"rels": [
|
814
|
-
"
|
752
|
+
"self"
|
815
753
|
]
|
816
754
|
}
|
817
|
-
],
|
818
|
-
"edit": [
|
819
|
-
{
|
820
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
821
|
-
"title": "Document Save",
|
822
|
-
"rels": [
|
823
|
-
"urn:pmp:form:documentsave"
|
824
|
-
],
|
825
|
-
"href-vars": {
|
826
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
827
|
-
},
|
828
|
-
"hints": {
|
829
|
-
"formats": [
|
830
|
-
"application/vnd.pmp.collection.doc+json"
|
831
|
-
],
|
832
|
-
"allow": [
|
833
|
-
"PUT",
|
834
|
-
"DELETE"
|
835
|
-
],
|
836
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
837
|
-
}
|
838
|
-
},
|
839
|
-
{
|
840
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
841
|
-
"title": "Profile Save",
|
842
|
-
"rels": [
|
843
|
-
"urn:pmp:form:profilesave"
|
844
|
-
],
|
845
|
-
"href-vars": {
|
846
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
847
|
-
},
|
848
|
-
"hints": {
|
849
|
-
"formats": [
|
850
|
-
"application/vnd.pmp.collection.doc+json"
|
851
|
-
],
|
852
|
-
"allow": [
|
853
|
-
"PUT",
|
854
|
-
"DELETE"
|
855
|
-
],
|
856
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
857
|
-
}
|
858
|
-
},
|
859
|
-
{
|
860
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
861
|
-
"title": "Schema Save",
|
862
|
-
"rels": [
|
863
|
-
"urn:pmp:form:schemasave"
|
864
|
-
],
|
865
|
-
"href-vars": {
|
866
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
867
|
-
},
|
868
|
-
"hints": {
|
869
|
-
"formats": [
|
870
|
-
"application/schema+json"
|
871
|
-
],
|
872
|
-
"allow": [
|
873
|
-
"PUT",
|
874
|
-
"DELETE"
|
875
|
-
],
|
876
|
-
"docs": "http://json-schema.org/"
|
877
|
-
}
|
878
|
-
},
|
879
|
-
{
|
880
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
881
|
-
"title": "Upload a rich media file",
|
882
|
-
"rels": [
|
883
|
-
"urn:pmp:form:mediaupload"
|
884
|
-
],
|
885
|
-
"href-vars": {
|
886
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
887
|
-
},
|
888
|
-
"hints": {
|
889
|
-
"allow": [
|
890
|
-
"POST"
|
891
|
-
],
|
892
|
-
"accept-post": [
|
893
|
-
"multipart/form-data"
|
894
|
-
]
|
895
|
-
}
|
896
|
-
}
|
897
755
|
]
|
898
756
|
}
|
899
757
|
},
|
900
758
|
{
|
901
759
|
"version": "1.0",
|
760
|
+
"href": "https://api-sandbox.pmp.io/docs/a79b1983-bd6e-448c-ac6f-601dd5366f41",
|
902
761
|
"attributes": {
|
903
762
|
"valid": {
|
904
|
-
"from": "
|
905
|
-
"to": "
|
763
|
+
"from": "2014-08-05T16:00:17+00:00",
|
764
|
+
"to": "3014-08-05T16:00:17+00:00"
|
906
765
|
},
|
907
|
-
"created": "
|
908
|
-
"modified": "
|
909
|
-
"
|
910
|
-
"
|
911
|
-
|
912
|
-
|
913
|
-
],
|
914
|
-
"title": "Pri - The World - Sample Document 1709974695",
|
915
|
-
"published": "2013-10-12T19:39:53+00:00"
|
766
|
+
"created": "2014-08-05T16:00:17+00:00",
|
767
|
+
"modified": "2014-08-05T16:00:18+00:00",
|
768
|
+
"title": "z79ByB7cso3IezP0AA5f",
|
769
|
+
"teaser": "kEuvDs7uvC",
|
770
|
+
"guid": "a79b1983-bd6e-448c-ac6f-601dd5366f41",
|
771
|
+
"published": "2014-08-05T16:00:17+00:00"
|
916
772
|
},
|
917
773
|
"links": {
|
918
774
|
"profile": [
|
@@ -920,132 +776,38 @@
|
|
920
776
|
"href": "https://api-sandbox.pmp.io/profiles/story"
|
921
777
|
}
|
922
778
|
],
|
923
|
-
"collection": [
|
924
|
-
{
|
925
|
-
"href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
|
926
|
-
},
|
927
|
-
{
|
928
|
-
"href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
|
929
|
-
}
|
930
|
-
],
|
931
|
-
"permissions": [
|
932
|
-
{
|
933
|
-
"href": "https://api-sandbox.pmp.io/groups/empty",
|
934
|
-
"operation": "read",
|
935
|
-
"blacklist": true
|
936
|
-
}
|
937
|
-
],
|
938
779
|
"creator": [
|
939
780
|
{
|
940
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
781
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
941
782
|
}
|
942
783
|
],
|
784
|
+
"item": [],
|
943
785
|
"navigation": [
|
944
786
|
{
|
945
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=
|
787
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=a79b1983-bd6e-448c-ac6f-601dd5366f41",
|
946
788
|
"rels": [
|
947
|
-
"
|
789
|
+
"self"
|
948
790
|
]
|
949
791
|
}
|
950
|
-
],
|
951
|
-
"edit": [
|
952
|
-
{
|
953
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
954
|
-
"title": "Document Save",
|
955
|
-
"rels": [
|
956
|
-
"urn:pmp:form:documentsave"
|
957
|
-
],
|
958
|
-
"href-vars": {
|
959
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
960
|
-
},
|
961
|
-
"hints": {
|
962
|
-
"formats": [
|
963
|
-
"application/vnd.pmp.collection.doc+json"
|
964
|
-
],
|
965
|
-
"allow": [
|
966
|
-
"PUT",
|
967
|
-
"DELETE"
|
968
|
-
],
|
969
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
970
|
-
}
|
971
|
-
},
|
972
|
-
{
|
973
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
974
|
-
"title": "Profile Save",
|
975
|
-
"rels": [
|
976
|
-
"urn:pmp:form:profilesave"
|
977
|
-
],
|
978
|
-
"href-vars": {
|
979
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
980
|
-
},
|
981
|
-
"hints": {
|
982
|
-
"formats": [
|
983
|
-
"application/vnd.pmp.collection.doc+json"
|
984
|
-
],
|
985
|
-
"allow": [
|
986
|
-
"PUT",
|
987
|
-
"DELETE"
|
988
|
-
],
|
989
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
990
|
-
}
|
991
|
-
},
|
992
|
-
{
|
993
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
994
|
-
"title": "Schema Save",
|
995
|
-
"rels": [
|
996
|
-
"urn:pmp:form:schemasave"
|
997
|
-
],
|
998
|
-
"href-vars": {
|
999
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1000
|
-
},
|
1001
|
-
"hints": {
|
1002
|
-
"formats": [
|
1003
|
-
"application/schema+json"
|
1004
|
-
],
|
1005
|
-
"allow": [
|
1006
|
-
"PUT",
|
1007
|
-
"DELETE"
|
1008
|
-
],
|
1009
|
-
"docs": "http://json-schema.org/"
|
1010
|
-
}
|
1011
|
-
},
|
1012
|
-
{
|
1013
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
1014
|
-
"title": "Upload a rich media file",
|
1015
|
-
"rels": [
|
1016
|
-
"urn:pmp:form:mediaupload"
|
1017
|
-
],
|
1018
|
-
"href-vars": {
|
1019
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
1020
|
-
},
|
1021
|
-
"hints": {
|
1022
|
-
"allow": [
|
1023
|
-
"POST"
|
1024
|
-
],
|
1025
|
-
"accept-post": [
|
1026
|
-
"multipart/form-data"
|
1027
|
-
]
|
1028
|
-
}
|
1029
|
-
}
|
1030
792
|
]
|
1031
793
|
}
|
1032
794
|
},
|
1033
795
|
{
|
1034
796
|
"version": "1.0",
|
797
|
+
"href": "https://api-sandbox.pmp.io/docs/5acb929e-1ce5-4d5a-a09d-6cb615c05b63",
|
1035
798
|
"attributes": {
|
1036
799
|
"valid": {
|
1037
|
-
"from": "
|
1038
|
-
"to": "
|
800
|
+
"from": "2014-08-05T15:53:34+00:00",
|
801
|
+
"to": "3014-08-05T15:53:34+00:00"
|
1039
802
|
},
|
1040
|
-
"created": "
|
1041
|
-
"modified": "
|
1042
|
-
"
|
1043
|
-
"
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
"
|
1048
|
-
"published": "2013-10-12T02:44:02+00:00"
|
803
|
+
"created": "2014-08-05T15:53:34+00:00",
|
804
|
+
"modified": "2014-08-05T15:53:34+00:00",
|
805
|
+
"hreflang": "en",
|
806
|
+
"guid": "5acb929e-1ce5-4d5a-a09d-6cb615c05b63",
|
807
|
+
"title": "PMPAPI Simpletest test: 11:53:32",
|
808
|
+
"published": "2014-08-05T15:48:31+00:00",
|
809
|
+
"byline": "lZonThlB",
|
810
|
+
"contentencoded": "szZiHpR5I028ZQJNsshTV3C6qGyLbTeD"
|
1049
811
|
},
|
1050
812
|
"links": {
|
1051
813
|
"profile": [
|
@@ -1053,377 +815,214 @@
|
|
1053
815
|
"href": "https://api-sandbox.pmp.io/profiles/story"
|
1054
816
|
}
|
1055
817
|
],
|
1056
|
-
"
|
1057
|
-
{
|
1058
|
-
"href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
|
1059
|
-
},
|
818
|
+
"alternate": [
|
1060
819
|
{
|
1061
|
-
"href": "
|
820
|
+
"href": "/node/1"
|
1062
821
|
}
|
1063
822
|
],
|
1064
|
-
"
|
823
|
+
"item": [
|
1065
824
|
{
|
1066
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
825
|
+
"href": "https://api-sandbox.pmp.io/docs/c2e536cf-f885-493f-a5f1-34dc87d53943"
|
1067
826
|
}
|
1068
827
|
],
|
1069
|
-
"
|
828
|
+
"creator": [
|
1070
829
|
{
|
1071
|
-
"href": "https://api-sandbox.pmp.io/docs
|
1072
|
-
"rels": [
|
1073
|
-
"urn:pmp:navigation:self"
|
1074
|
-
]
|
830
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1075
831
|
}
|
1076
832
|
],
|
1077
|
-
"
|
833
|
+
"navigation": [
|
1078
834
|
{
|
1079
|
-
"href
|
1080
|
-
"title": "Document Save",
|
835
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=5acb929e-1ce5-4d5a-a09d-6cb615c05b63",
|
1081
836
|
"rels": [
|
1082
|
-
"
|
837
|
+
"self"
|
1083
838
|
],
|
1084
|
-
"
|
1085
|
-
|
839
|
+
"totalitems": 1,
|
840
|
+
"totalpages": 1,
|
841
|
+
"pagenum": 1
|
842
|
+
}
|
843
|
+
]
|
844
|
+
},
|
845
|
+
"items": [
|
846
|
+
{
|
847
|
+
"version": "1.0",
|
848
|
+
"href": "https://api-sandbox.pmp.io/docs/c2e536cf-f885-493f-a5f1-34dc87d53943",
|
849
|
+
"attributes": {
|
850
|
+
"valid": {
|
851
|
+
"from": "2014-08-05T15:53:30+00:00",
|
852
|
+
"to": "3014-08-05T15:53:30+00:00"
|
1086
853
|
},
|
1087
|
-
"
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
|
1092
|
-
|
1093
|
-
|
1094
|
-
],
|
1095
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
1096
|
-
}
|
854
|
+
"created": "2014-08-05T15:53:30+00:00",
|
855
|
+
"modified": "2014-08-05T15:53:31+00:00",
|
856
|
+
"hreflang": "en",
|
857
|
+
"guid": "c2e536cf-f885-493f-a5f1-34dc87d53943",
|
858
|
+
"title": "image-2.jpg",
|
859
|
+
"published": "2014-08-05T15:48:31+00:00",
|
860
|
+
"byline": "Anonymous"
|
1097
861
|
},
|
1098
|
-
{
|
1099
|
-
"
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
862
|
+
"links": {
|
863
|
+
"profile": [
|
864
|
+
{
|
865
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
866
|
+
}
|
1103
867
|
],
|
1104
|
-
"
|
1105
|
-
|
1106
|
-
|
1107
|
-
|
1108
|
-
"formats": [
|
1109
|
-
"application/vnd.pmp.collection.doc+json"
|
1110
|
-
],
|
1111
|
-
"allow": [
|
1112
|
-
"PUT",
|
1113
|
-
"DELETE"
|
1114
|
-
],
|
1115
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
1116
|
-
}
|
1117
|
-
},
|
1118
|
-
{
|
1119
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
1120
|
-
"title": "Schema Save",
|
1121
|
-
"rels": [
|
1122
|
-
"urn:pmp:form:schemasave"
|
868
|
+
"alternate": [
|
869
|
+
{
|
870
|
+
"href": "/file/8"
|
871
|
+
}
|
1123
872
|
],
|
1124
|
-
"
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
|
1132
|
-
"
|
1133
|
-
|
1134
|
-
],
|
1135
|
-
"docs": "http://json-schema.org/"
|
1136
|
-
}
|
1137
|
-
},
|
1138
|
-
{
|
1139
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
1140
|
-
"title": "Upload a rich media file",
|
1141
|
-
"rels": [
|
1142
|
-
"urn:pmp:form:mediaupload"
|
873
|
+
"enclosure": [
|
874
|
+
{
|
875
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/171508/image-2.jpg",
|
876
|
+
"meta": {
|
877
|
+
"crop": "primary",
|
878
|
+
"height": 60,
|
879
|
+
"width": 80
|
880
|
+
},
|
881
|
+
"type": "image/jpeg"
|
882
|
+
}
|
1143
883
|
],
|
1144
|
-
"
|
1145
|
-
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1152
|
-
"
|
1153
|
-
|
1154
|
-
|
884
|
+
"creator": [
|
885
|
+
{
|
886
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
887
|
+
}
|
888
|
+
],
|
889
|
+
"item": [],
|
890
|
+
"navigation": [
|
891
|
+
{
|
892
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=c2e536cf-f885-493f-a5f1-34dc87d53943",
|
893
|
+
"rels": [
|
894
|
+
"self"
|
895
|
+
]
|
896
|
+
}
|
897
|
+
]
|
1155
898
|
}
|
1156
|
-
|
1157
|
-
|
899
|
+
}
|
900
|
+
]
|
1158
901
|
},
|
1159
902
|
{
|
1160
903
|
"version": "1.0",
|
904
|
+
"href": "https://api-sandbox.pmp.io/docs/c2e536cf-f885-493f-a5f1-34dc87d53943",
|
1161
905
|
"attributes": {
|
1162
906
|
"valid": {
|
1163
|
-
"from": "
|
1164
|
-
"to": "
|
907
|
+
"from": "2014-08-05T15:53:30+00:00",
|
908
|
+
"to": "3014-08-05T15:53:30+00:00"
|
1165
909
|
},
|
1166
|
-
"created": "
|
1167
|
-
"modified": "
|
1168
|
-
"
|
1169
|
-
"
|
1170
|
-
|
1171
|
-
|
1172
|
-
|
1173
|
-
"title": "Pri - The World - Sample Document 787006142",
|
1174
|
-
"published": "2013-10-12T02:43:11+00:00"
|
910
|
+
"created": "2014-08-05T15:53:30+00:00",
|
911
|
+
"modified": "2014-08-05T15:53:31+00:00",
|
912
|
+
"hreflang": "en",
|
913
|
+
"guid": "c2e536cf-f885-493f-a5f1-34dc87d53943",
|
914
|
+
"title": "image-2.jpg",
|
915
|
+
"published": "2014-08-05T15:48:31+00:00",
|
916
|
+
"byline": "Anonymous"
|
1175
917
|
},
|
1176
918
|
"links": {
|
1177
919
|
"profile": [
|
1178
920
|
{
|
1179
|
-
"href": "https://api-sandbox.pmp.io/profiles/
|
921
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
1180
922
|
}
|
1181
923
|
],
|
1182
|
-
"
|
924
|
+
"alternate": [
|
1183
925
|
{
|
1184
|
-
"href": "
|
1185
|
-
}
|
926
|
+
"href": "/file/8"
|
927
|
+
}
|
928
|
+
],
|
929
|
+
"enclosure": [
|
1186
930
|
{
|
1187
|
-
"href": "
|
931
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/171508/image-2.jpg",
|
932
|
+
"meta": {
|
933
|
+
"crop": "primary",
|
934
|
+
"height": 60,
|
935
|
+
"width": 80
|
936
|
+
},
|
937
|
+
"type": "image/jpeg"
|
1188
938
|
}
|
1189
939
|
],
|
1190
940
|
"creator": [
|
1191
941
|
{
|
1192
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
942
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1193
943
|
}
|
1194
944
|
],
|
945
|
+
"item": [],
|
1195
946
|
"navigation": [
|
1196
947
|
{
|
1197
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=
|
948
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=c2e536cf-f885-493f-a5f1-34dc87d53943",
|
1198
949
|
"rels": [
|
1199
|
-
"
|
950
|
+
"self"
|
1200
951
|
]
|
1201
952
|
}
|
1202
|
-
],
|
1203
|
-
"edit": [
|
1204
|
-
{
|
1205
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
1206
|
-
"title": "Document Save",
|
1207
|
-
"rels": [
|
1208
|
-
"urn:pmp:form:documentsave"
|
1209
|
-
],
|
1210
|
-
"href-vars": {
|
1211
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1212
|
-
},
|
1213
|
-
"hints": {
|
1214
|
-
"formats": [
|
1215
|
-
"application/vnd.pmp.collection.doc+json"
|
1216
|
-
],
|
1217
|
-
"allow": [
|
1218
|
-
"PUT",
|
1219
|
-
"DELETE"
|
1220
|
-
],
|
1221
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
1222
|
-
}
|
1223
|
-
},
|
1224
|
-
{
|
1225
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
1226
|
-
"title": "Profile Save",
|
1227
|
-
"rels": [
|
1228
|
-
"urn:pmp:form:profilesave"
|
1229
|
-
],
|
1230
|
-
"href-vars": {
|
1231
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1232
|
-
},
|
1233
|
-
"hints": {
|
1234
|
-
"formats": [
|
1235
|
-
"application/vnd.pmp.collection.doc+json"
|
1236
|
-
],
|
1237
|
-
"allow": [
|
1238
|
-
"PUT",
|
1239
|
-
"DELETE"
|
1240
|
-
],
|
1241
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
1242
|
-
}
|
1243
|
-
},
|
1244
|
-
{
|
1245
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
1246
|
-
"title": "Schema Save",
|
1247
|
-
"rels": [
|
1248
|
-
"urn:pmp:form:schemasave"
|
1249
|
-
],
|
1250
|
-
"href-vars": {
|
1251
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1252
|
-
},
|
1253
|
-
"hints": {
|
1254
|
-
"formats": [
|
1255
|
-
"application/schema+json"
|
1256
|
-
],
|
1257
|
-
"allow": [
|
1258
|
-
"PUT",
|
1259
|
-
"DELETE"
|
1260
|
-
],
|
1261
|
-
"docs": "http://json-schema.org/"
|
1262
|
-
}
|
1263
|
-
},
|
1264
|
-
{
|
1265
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
1266
|
-
"title": "Upload a rich media file",
|
1267
|
-
"rels": [
|
1268
|
-
"urn:pmp:form:mediaupload"
|
1269
|
-
],
|
1270
|
-
"href-vars": {
|
1271
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
1272
|
-
},
|
1273
|
-
"hints": {
|
1274
|
-
"allow": [
|
1275
|
-
"POST"
|
1276
|
-
],
|
1277
|
-
"accept-post": [
|
1278
|
-
"multipart/form-data"
|
1279
|
-
]
|
1280
|
-
}
|
1281
|
-
}
|
1282
953
|
]
|
1283
954
|
}
|
1284
955
|
},
|
1285
956
|
{
|
1286
957
|
"version": "1.0",
|
958
|
+
"href": "https://api-sandbox.pmp.io/docs/46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
1287
959
|
"attributes": {
|
1288
960
|
"valid": {
|
1289
|
-
"from": "
|
1290
|
-
"to": "
|
961
|
+
"from": "2014-08-05T15:58:23+00:00",
|
962
|
+
"to": "3014-08-05T15:58:23+00:00"
|
1291
963
|
},
|
1292
|
-
"created": "
|
1293
|
-
"modified": "
|
1294
|
-
"
|
1295
|
-
"
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
"title": "Pri - The World - Sample Document 523684005",
|
1300
|
-
"published": "2013-10-12T02:22:39+00:00"
|
964
|
+
"created": "2014-08-05T15:58:23+00:00",
|
965
|
+
"modified": "2014-08-05T15:58:24+00:00",
|
966
|
+
"hreflang": "en",
|
967
|
+
"guid": "46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
968
|
+
"title": "image-test.jpg",
|
969
|
+
"published": "2014-08-05T15:48:31+00:00",
|
970
|
+
"byline": "Anonymous"
|
1301
971
|
},
|
1302
972
|
"links": {
|
1303
973
|
"profile": [
|
1304
974
|
{
|
1305
|
-
"href": "https://api-sandbox.pmp.io/profiles/
|
975
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
1306
976
|
}
|
1307
977
|
],
|
1308
|
-
"
|
978
|
+
"alternate": [
|
1309
979
|
{
|
1310
|
-
"href": "
|
1311
|
-
}
|
980
|
+
"href": "/file/9"
|
981
|
+
}
|
982
|
+
],
|
983
|
+
"enclosure": [
|
1312
984
|
{
|
1313
|
-
"href": "
|
985
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/70746/image-test.jpg",
|
986
|
+
"meta": {
|
987
|
+
"crop": "primary",
|
988
|
+
"height": 20,
|
989
|
+
"width": 40
|
990
|
+
},
|
991
|
+
"type": "image/jpeg"
|
1314
992
|
}
|
1315
993
|
],
|
1316
994
|
"creator": [
|
1317
995
|
{
|
1318
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
996
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1319
997
|
}
|
1320
998
|
],
|
999
|
+
"item": [],
|
1321
1000
|
"navigation": [
|
1322
1001
|
{
|
1323
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=
|
1002
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
1324
1003
|
"rels": [
|
1325
|
-
"
|
1004
|
+
"self"
|
1326
1005
|
]
|
1327
1006
|
}
|
1328
|
-
],
|
1329
|
-
"edit": [
|
1330
|
-
{
|
1331
|
-
"href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
|
1332
|
-
"title": "Document Save",
|
1333
|
-
"rels": [
|
1334
|
-
"urn:pmp:form:documentsave"
|
1335
|
-
],
|
1336
|
-
"href-vars": {
|
1337
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1338
|
-
},
|
1339
|
-
"hints": {
|
1340
|
-
"formats": [
|
1341
|
-
"application/vnd.pmp.collection.doc+json"
|
1342
|
-
],
|
1343
|
-
"allow": [
|
1344
|
-
"PUT",
|
1345
|
-
"DELETE"
|
1346
|
-
],
|
1347
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
1348
|
-
}
|
1349
|
-
},
|
1350
|
-
{
|
1351
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
1352
|
-
"title": "Profile Save",
|
1353
|
-
"rels": [
|
1354
|
-
"urn:pmp:form:profilesave"
|
1355
|
-
],
|
1356
|
-
"href-vars": {
|
1357
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1358
|
-
},
|
1359
|
-
"hints": {
|
1360
|
-
"formats": [
|
1361
|
-
"application/vnd.pmp.collection.doc+json"
|
1362
|
-
],
|
1363
|
-
"allow": [
|
1364
|
-
"PUT",
|
1365
|
-
"DELETE"
|
1366
|
-
],
|
1367
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
1368
|
-
}
|
1369
|
-
},
|
1370
|
-
{
|
1371
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
1372
|
-
"title": "Schema Save",
|
1373
|
-
"rels": [
|
1374
|
-
"urn:pmp:form:schemasave"
|
1375
|
-
],
|
1376
|
-
"href-vars": {
|
1377
|
-
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
1378
|
-
},
|
1379
|
-
"hints": {
|
1380
|
-
"formats": [
|
1381
|
-
"application/schema+json"
|
1382
|
-
],
|
1383
|
-
"allow": [
|
1384
|
-
"PUT",
|
1385
|
-
"DELETE"
|
1386
|
-
],
|
1387
|
-
"docs": "http://json-schema.org/"
|
1388
|
-
}
|
1389
|
-
},
|
1390
|
-
{
|
1391
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
1392
|
-
"title": "Upload a rich media file",
|
1393
|
-
"rels": [
|
1394
|
-
"urn:pmp:form:mediaupload"
|
1395
|
-
],
|
1396
|
-
"href-vars": {
|
1397
|
-
"submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
|
1398
|
-
},
|
1399
|
-
"hints": {
|
1400
|
-
"allow": [
|
1401
|
-
"POST"
|
1402
|
-
],
|
1403
|
-
"accept-post": [
|
1404
|
-
"multipart/form-data"
|
1405
|
-
]
|
1406
|
-
}
|
1407
|
-
}
|
1408
1007
|
]
|
1409
1008
|
}
|
1410
1009
|
},
|
1411
1010
|
{
|
1412
1011
|
"version": "1.0",
|
1012
|
+
"href": "https://api-sandbox.pmp.io/docs/bb6e5679-c581-4db5-8b17-94365230d7e2",
|
1413
1013
|
"attributes": {
|
1414
1014
|
"valid": {
|
1415
|
-
"from": "
|
1416
|
-
"to": "
|
1015
|
+
"from": "2014-08-05T15:58:26+00:00",
|
1016
|
+
"to": "3014-08-05T15:58:26+00:00"
|
1417
1017
|
},
|
1418
|
-
"created": "
|
1419
|
-
"modified": "
|
1420
|
-
"
|
1421
|
-
"
|
1422
|
-
|
1423
|
-
|
1424
|
-
|
1425
|
-
"
|
1426
|
-
"published": "2013-10-12T02:22:05+00:00"
|
1018
|
+
"created": "2014-08-05T15:58:26+00:00",
|
1019
|
+
"modified": "2014-08-05T15:58:27+00:00",
|
1020
|
+
"hreflang": "en",
|
1021
|
+
"guid": "bb6e5679-c581-4db5-8b17-94365230d7e2",
|
1022
|
+
"title": "PMPAPI Simpletest test: 11:58:24",
|
1023
|
+
"published": "2014-08-05T15:48:31+00:00",
|
1024
|
+
"byline": "vaNZcWxz",
|
1025
|
+
"contentencoded": "b7pgQu6komlhJWKaXNw5CWOqS69qkbXi"
|
1427
1026
|
},
|
1428
1027
|
"links": {
|
1429
1028
|
"profile": [
|
@@ -1431,108 +1030,89 @@
|
|
1431
1030
|
"href": "https://api-sandbox.pmp.io/profiles/story"
|
1432
1031
|
}
|
1433
1032
|
],
|
1434
|
-
"
|
1435
|
-
{
|
1436
|
-
"href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
|
1437
|
-
},
|
1033
|
+
"alternate": [
|
1438
1034
|
{
|
1439
|
-
"href": "
|
1035
|
+
"href": "/node/1"
|
1440
1036
|
}
|
1441
1037
|
],
|
1442
|
-
"
|
1038
|
+
"item": [
|
1443
1039
|
{
|
1444
|
-
"href": "https://api-sandbox.pmp.io/docs/
|
1040
|
+
"href": "https://api-sandbox.pmp.io/docs/46f3e464-7f76-4529-8a69-fd20cb5047a0"
|
1445
1041
|
}
|
1446
1042
|
],
|
1447
|
-
"
|
1043
|
+
"creator": [
|
1448
1044
|
{
|
1449
|
-
"href": "https://api-sandbox.pmp.io/docs
|
1450
|
-
"rels": [
|
1451
|
-
"urn:pmp:navigation:self"
|
1452
|
-
]
|
1045
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1453
1046
|
}
|
1454
1047
|
],
|
1455
|
-
"
|
1048
|
+
"navigation": [
|
1456
1049
|
{
|
1457
|
-
"href
|
1458
|
-
"title": "Document Save",
|
1050
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=bb6e5679-c581-4db5-8b17-94365230d7e2",
|
1459
1051
|
"rels": [
|
1460
|
-
"
|
1052
|
+
"self"
|
1461
1053
|
],
|
1462
|
-
"
|
1463
|
-
|
1054
|
+
"totalitems": 1,
|
1055
|
+
"totalpages": 1,
|
1056
|
+
"pagenum": 1
|
1057
|
+
}
|
1058
|
+
]
|
1059
|
+
},
|
1060
|
+
"items": [
|
1061
|
+
{
|
1062
|
+
"version": "1.0",
|
1063
|
+
"href": "https://api-sandbox.pmp.io/docs/46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
1064
|
+
"attributes": {
|
1065
|
+
"valid": {
|
1066
|
+
"from": "2014-08-05T15:58:23+00:00",
|
1067
|
+
"to": "3014-08-05T15:58:23+00:00"
|
1464
1068
|
},
|
1465
|
-
"
|
1466
|
-
|
1467
|
-
|
1468
|
-
|
1469
|
-
|
1470
|
-
|
1471
|
-
|
1472
|
-
],
|
1473
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
|
1474
|
-
}
|
1069
|
+
"created": "2014-08-05T15:58:23+00:00",
|
1070
|
+
"modified": "2014-08-05T15:58:24+00:00",
|
1071
|
+
"hreflang": "en",
|
1072
|
+
"guid": "46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
1073
|
+
"title": "image-test.jpg",
|
1074
|
+
"published": "2014-08-05T15:48:31+00:00",
|
1075
|
+
"byline": "Anonymous"
|
1475
1076
|
},
|
1476
|
-
{
|
1477
|
-
"
|
1478
|
-
|
1479
|
-
|
1480
|
-
|
1077
|
+
"links": {
|
1078
|
+
"profile": [
|
1079
|
+
{
|
1080
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
1081
|
+
}
|
1481
1082
|
],
|
1482
|
-
"
|
1483
|
-
|
1484
|
-
|
1485
|
-
|
1486
|
-
"formats": [
|
1487
|
-
"application/vnd.pmp.collection.doc+json"
|
1488
|
-
],
|
1489
|
-
"allow": [
|
1490
|
-
"PUT",
|
1491
|
-
"DELETE"
|
1492
|
-
],
|
1493
|
-
"docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
|
1494
|
-
}
|
1495
|
-
},
|
1496
|
-
{
|
1497
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
1498
|
-
"title": "Schema Save",
|
1499
|
-
"rels": [
|
1500
|
-
"urn:pmp:form:schemasave"
|
1083
|
+
"alternate": [
|
1084
|
+
{
|
1085
|
+
"href": "/file/9"
|
1086
|
+
}
|
1501
1087
|
],
|
1502
|
-
"
|
1503
|
-
|
1504
|
-
|
1505
|
-
|
1506
|
-
|
1507
|
-
|
1508
|
-
|
1509
|
-
|
1510
|
-
"
|
1511
|
-
|
1512
|
-
],
|
1513
|
-
"docs": "http://json-schema.org/"
|
1514
|
-
}
|
1515
|
-
},
|
1516
|
-
{
|
1517
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
1518
|
-
"title": "Upload a rich media file",
|
1519
|
-
"rels": [
|
1520
|
-
"urn:pmp:form:mediaupload"
|
1088
|
+
"enclosure": [
|
1089
|
+
{
|
1090
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/70746/image-test.jpg",
|
1091
|
+
"meta": {
|
1092
|
+
"crop": "primary",
|
1093
|
+
"height": 20,
|
1094
|
+
"width": 40
|
1095
|
+
},
|
1096
|
+
"type": "image/jpeg"
|
1097
|
+
}
|
1521
1098
|
],
|
1522
|
-
"
|
1523
|
-
|
1524
|
-
|
1525
|
-
|
1526
|
-
|
1527
|
-
|
1528
|
-
|
1529
|
-
|
1530
|
-
"
|
1531
|
-
|
1532
|
-
|
1099
|
+
"creator": [
|
1100
|
+
{
|
1101
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1102
|
+
}
|
1103
|
+
],
|
1104
|
+
"item": [],
|
1105
|
+
"navigation": [
|
1106
|
+
{
|
1107
|
+
"href": "https://api-sandbox.pmp.io/docs?guid=46f3e464-7f76-4529-8a69-fd20cb5047a0",
|
1108
|
+
"rels": [
|
1109
|
+
"self"
|
1110
|
+
]
|
1111
|
+
}
|
1112
|
+
]
|
1533
1113
|
}
|
1534
|
-
|
1535
|
-
|
1114
|
+
}
|
1115
|
+
]
|
1536
1116
|
}
|
1537
1117
|
]
|
1538
1118
|
}
|