pmp 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,53 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
4
+
5
+ require 'pmp/configuration'
6
+
7
+ class TestConfiguration
8
+ include PMP::Configuration
9
+
10
+ def initialize(options={})
11
+ apply_configuration(options)
12
+ end
13
+ end
14
+
15
+ describe PMP::Configuration do
16
+
17
+ before {
18
+ @client_id = ENV['PMP_API_KEY'] || "pmp-test-key"
19
+ @client_secret = ENV['PMP_API_SECRET'] || "pmp-test-secret"
20
+ }
21
+
22
+ it "is initialized with defaults" do
23
+ tc = TestConfiguration.new
24
+ tc.options.wont_be_nil
25
+ tc.options.keys.sort.must_equal PMP::Configuration::VALID_OPTIONS_KEYS.sort
26
+ tc.options[:endpoint].must_equal PMP::Configuration::DEFAULT_ENDPOINT
27
+ end
28
+
29
+ it "can access configuration methods" do
30
+ tc = TestConfiguration.new
31
+ tc.endpoint.must_equal PMP::Configuration::DEFAULT_ENDPOINT
32
+ end
33
+
34
+ it "can change config and see reflected in options" do
35
+ tc = TestConfiguration.new
36
+ tc.endpoint.must_equal PMP::Configuration::DEFAULT_ENDPOINT
37
+ tc.endpoint = 'test'
38
+ tc.endpoint.must_equal 'test'
39
+ tc.options[:endpoint].must_equal 'test'
40
+ end
41
+
42
+ it "is initialized with specific values" do
43
+ tc = TestConfiguration.new(client_id: @client_id, client_secret: @client_secret)
44
+ tc.options.wont_be_nil
45
+
46
+ tc.options[:client_id].must_equal @client_id
47
+ tc.client_id.must_equal @client_id
48
+
49
+ tc.options[:client_secret].must_equal @client_secret
50
+ tc.client_secret.must_equal @client_secret
51
+ end
52
+
53
+ end
@@ -0,0 +1,35 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
4
+
5
+ require 'pmp/configuration'
6
+
7
+ class TestConnection
8
+ include PMP::Connection
9
+ end
10
+
11
+ describe PMP::Connection do
12
+
13
+ before {
14
+ @tc = TestConnection.new
15
+ }
16
+
17
+ it "sets default connection options" do
18
+ opts = @tc.process_options
19
+ opts.wont_be_nil
20
+ end
21
+
22
+ it "sets default connection options" do
23
+ opts = @tc.process_options(endpoint:'endpoint')
24
+ opts[:ssl].must_equal({:verify => false})
25
+ opts[:url].must_equal 'endpoint'
26
+ end
27
+
28
+ it "mereges headers for connection options" do
29
+ opts = @tc.process_options(user_agent:'user_agent', headers:{foo:'bar'})
30
+ opts[:headers][:foo].must_equal 'bar'
31
+ opts[:headers]['User-Agent'].must_equal 'user_agent'
32
+ opts[:headers]['Accept'].must_equal "application/vnd.pmp.collection.doc+json"
33
+ end
34
+
35
+ end
@@ -0,0 +1,38 @@
1
+ {
2
+ "version": "1.0",
3
+ "attributes": {
4
+ "guid": "f84e9018-5c21-4b32-93f8-d519308620f0",
5
+ "title": "Peers Find Less Pressure Borrowing From Each Other",
6
+ "published": "2013-05-10T15:17:00.598Z",
7
+ "valid": {
8
+ "from": "2013-05-10T15:17:00.598Z",
9
+ "to": "2213-05-10T15:17:00.598Z"
10
+ },
11
+ "byline": "by SOME PERSON",
12
+ "hreflang": "en",
13
+ "description": "",
14
+ "contentencoded": "...",
15
+ "contenttemplated": "..."
16
+ },
17
+ "items": [],
18
+ "links": {
19
+ "profile": [
20
+ {
21
+ "href": "http://api-sandbox.pmp.io/profiles/story"
22
+ }
23
+ ],
24
+ "self": [
25
+ {
26
+ "href": "http://api-sandbox.pmp.io/docs/f84e9018-5c21-4b32-93f8-d519308620f0"
27
+ }
28
+ ],
29
+ "collection": [
30
+ {
31
+ "href": "http://api-sandbox.pmp.io/docs/"
32
+ }
33
+ ],
34
+ "queries": [],
35
+ "edit-form": []
36
+ },
37
+ "error": {}
38
+ }
@@ -0,0 +1,640 @@
1
+ {
2
+ "version": "1.0",
3
+ "attributes": {
4
+ "valid": {
5
+ "from": "2013-10-04T16:02:36+00:00",
6
+ "to": "3013-10-04T16:02:36+00:00"
7
+ },
8
+ "created": "2013-10-04T16:02:36+00:00",
9
+ "modified": "2013-10-04T16:02:36+00:00"
10
+ },
11
+ "links": {
12
+ "item": [
13
+ {
14
+ "href": "https://api-sandbox.pmp.io/docs/98bf597a-2a6f-446c-9b7e-d8ae60122f0d"
15
+ },
16
+ {
17
+ "href": "https://api-sandbox.pmp.io/docs/609a539c-9177-4aa7-acde-c10b77a6a525"
18
+ },
19
+ {
20
+ "href": "https://api-sandbox.pmp.io/docs/6140faf0-fb45-4a95-859a-070037fafa01"
21
+ },
22
+ {
23
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
24
+ },
25
+ {
26
+ "href": "https://api-sandbox.pmp.io/docs/fc53c568-e939-4d9c-86ea-c2a2c70f1a99"
27
+ },
28
+ {
29
+ "href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
30
+ },
31
+ {
32
+ "href": "https://api-sandbox.pmp.io/docs/6c06b198-555f-458a-bf0d-3e0864e19afe"
33
+ },
34
+ {
35
+ "href": "https://api-sandbox.pmp.io/docs/062f6610-7f13-486c-8b0e-d5a1b1c4fc9b"
36
+ },
37
+ {
38
+ "href": "https://api-sandbox.pmp.io/docs/344ffbfa-090b-4fd4-b343-d12b4e3cfc35"
39
+ },
40
+ {
41
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
42
+ }
43
+ ],
44
+ "navigation": [
45
+ {
46
+ "href": "https://api-sandbox.pmp.io/docs?profile=621a1ab8-a78b-48bf-8fbb-776d3d2a82d1",
47
+ "rels": [
48
+ "urn:pmp:navigation:self"
49
+ ],
50
+ "totalitems": 10,
51
+ "totalpages": 1,
52
+ "pagenum": 1
53
+ }
54
+ ],
55
+ "query": [
56
+ {
57
+ "href-template": "https://api-sandbox.pmp.io/users{?limit,offset,tag,collection,text,searchsort,has}",
58
+ "title": "Query for users",
59
+ "rels": [
60
+ "urn:pmp:query:users"
61
+ ],
62
+ "href-vars": {
63
+ "limit": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
64
+ "offset": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
65
+ "tag": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
66
+ "collection": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
67
+ "text": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
68
+ "searchsort": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
69
+ "has": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
70
+ },
71
+ "hints": {
72
+ "allow": [
73
+ "GET"
74
+ ]
75
+ }
76
+ },
77
+ {
78
+ "href-template": "https://api-sandbox.pmp.io/groups{?limit,offset,tag,collection,text,searchsort,has}",
79
+ "title": "Query for groups",
80
+ "rels": [
81
+ "urn:pmp:query:groups"
82
+ ],
83
+ "href-vars": {
84
+ "limit": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
85
+ "offset": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
86
+ "tag": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
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
+ },
91
+ "hints": {
92
+ "allow": [
93
+ "GET"
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
99
+ "title": "Access profiles",
100
+ "rels": [
101
+ "urn:pmp:hreftpl:profiles"
102
+ ],
103
+ "href-vars": {
104
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
105
+ },
106
+ "hints": {
107
+ "allow": [
108
+ "GET",
109
+ "PUT",
110
+ "DELETE"
111
+ ]
112
+ }
113
+ },
114
+ {
115
+ "href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
116
+ "title": "Access schemas",
117
+ "rels": [
118
+ "urn:pmp:hreftpl:schemas"
119
+ ],
120
+ "href-vars": {
121
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
122
+ },
123
+ "hints": {
124
+ "allow": [
125
+ "GET",
126
+ "PUT",
127
+ "DELETE"
128
+ ]
129
+ },
130
+ "type": "application/schema+json"
131
+ },
132
+ {
133
+ "href-template": "https://api-sandbox.pmp.io/docs{/guid}{?limit,offset}",
134
+ "title": "Access documents",
135
+ "rels": [
136
+ "urn:pmp:hreftpl:docs"
137
+ ],
138
+ "href-vars": {
139
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
140
+ "limit": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
141
+ "offset": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
142
+ },
143
+ "hints": {
144
+ "allow": [
145
+ "GET",
146
+ "PUT",
147
+ "DELETE"
148
+ ]
149
+ }
150
+ },
151
+ {
152
+ "href-template": "https://api-sandbox.pmp.io/docs{?limit,offset,tag,collection,text,searchsort,has,author,distributor,distributorgroup,startdate,enddate,profile,language}",
153
+ "title": "Query for documents",
154
+ "rels": [
155
+ "urn:pmp:query:docs"
156
+ ],
157
+ "href-vars": {
158
+ "limit": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
159
+ "offset": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
160
+ "tag": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
161
+ "collection": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
162
+ "text": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
163
+ "searchsort": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
164
+ "has": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
165
+ "author": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
166
+ "distributor": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
167
+ "distributorgroup": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
168
+ "startdate": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
169
+ "enddate": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
170
+ "profile": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
171
+ "language": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
172
+ },
173
+ "hints": {
174
+ "allow": [
175
+ "GET"
176
+ ]
177
+ }
178
+ },
179
+ {
180
+ "href": "https://api-sandbox.pmp.io/guids",
181
+ "title": "Generate guids",
182
+ "rels": [
183
+ "urn:pmp:query:guids"
184
+ ],
185
+ "method": "POST",
186
+ "type": "application/json"
187
+ },
188
+ {
189
+ "href": "https://publish-sandbox.pmp.io/files",
190
+ "title": "Upload media files",
191
+ "rels": [
192
+ "urn:pmp:query:files"
193
+ ],
194
+ "method": "POST",
195
+ "type": "multipart/form-data"
196
+ }
197
+ ],
198
+ "edit": [
199
+ {
200
+ "href": "https://publish-sandbox.pmp.io/docs",
201
+ "method": "PUT"
202
+ }
203
+ ]
204
+ },
205
+ "items": [
206
+ {
207
+ "version": "1.0",
208
+ "attributes": {
209
+ "valid": {
210
+ "from": "2013-10-01T18:59:32+00:00",
211
+ "to": "3013-10-01T18:59:32+00:00"
212
+ },
213
+ "created": "2013-10-01T18:59:32+00:00",
214
+ "modified": "2013-10-04T16:02:37+00:00",
215
+ "tags": [
216
+ "testcontent"
217
+ ],
218
+ "title": "American Public Media",
219
+ "guid": "98bf597a-2a6f-446c-9b7e-d8ae60122f0d",
220
+ "published": "2013-10-01T18:59:32+00:00"
221
+ },
222
+ "links": {
223
+ "profile": [
224
+ {
225
+ "href": "https://api-sandbox.pmp.io/profiles/user"
226
+ }
227
+ ],
228
+ "creator": [
229
+ {
230
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
231
+ }
232
+ ],
233
+ "navigation": [
234
+ {
235
+ "href": "https://api-sandbox.pmp.io/docs?guid=98bf597a-2a6f-446c-9b7e-d8ae60122f0d",
236
+ "rels": [
237
+ "urn:pmp:navigation:self"
238
+ ]
239
+ }
240
+ ],
241
+ "edit": [
242
+ {
243
+ "href": "https://publish-sandbox.pmp.io/docs",
244
+ "method": "PUT"
245
+ }
246
+ ]
247
+ }
248
+ },
249
+ {
250
+ "version": "1.0",
251
+ "attributes": {
252
+ "valid": {
253
+ "from": "2013-10-01T18:59:32+00:00",
254
+ "to": "3013-10-01T18:59:32+00:00"
255
+ },
256
+ "created": "2013-10-01T18:59:32+00:00",
257
+ "modified": "2013-10-04T16:02:36+00:00",
258
+ "tags": [
259
+ "testcontent"
260
+ ],
261
+ "title": "Public Radio Exchange",
262
+ "guid": "609a539c-9177-4aa7-acde-c10b77a6a525",
263
+ "published": "2013-10-01T18:59:32+00:00"
264
+ },
265
+ "links": {
266
+ "profile": [
267
+ {
268
+ "href": "https://api-sandbox.pmp.io/profiles/user"
269
+ }
270
+ ],
271
+ "creator": [
272
+ {
273
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
274
+ }
275
+ ],
276
+ "navigation": [
277
+ {
278
+ "href": "https://api-sandbox.pmp.io/docs?guid=609a539c-9177-4aa7-acde-c10b77a6a525",
279
+ "rels": [
280
+ "urn:pmp:navigation:self"
281
+ ]
282
+ }
283
+ ],
284
+ "edit": [
285
+ {
286
+ "href": "https://publish-sandbox.pmp.io/docs",
287
+ "method": "PUT"
288
+ }
289
+ ]
290
+ }
291
+ },
292
+ {
293
+ "version": "1.0",
294
+ "attributes": {
295
+ "valid": {
296
+ "from": "2013-10-01T18:59:31+00:00",
297
+ "to": "3013-10-01T18:59:31+00:00"
298
+ },
299
+ "created": "2013-10-01T18:59:31+00:00",
300
+ "modified": "2013-10-04T16:02:36+00:00",
301
+ "tags": [
302
+ "testcontent"
303
+ ],
304
+ "title": "NPR Digital Media",
305
+ "guid": "6140faf0-fb45-4a95-859a-070037fafa01",
306
+ "published": "2013-10-01T18:59:31+00:00"
307
+ },
308
+ "links": {
309
+ "profile": [
310
+ {
311
+ "href": "https://api-sandbox.pmp.io/profiles/user"
312
+ }
313
+ ],
314
+ "creator": [
315
+ {
316
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
317
+ }
318
+ ],
319
+ "navigation": [
320
+ {
321
+ "href": "https://api-sandbox.pmp.io/docs?guid=6140faf0-fb45-4a95-859a-070037fafa01",
322
+ "rels": [
323
+ "urn:pmp:navigation:self"
324
+ ]
325
+ }
326
+ ],
327
+ "edit": [
328
+ {
329
+ "href": "https://publish-sandbox.pmp.io/docs",
330
+ "method": "PUT"
331
+ }
332
+ ]
333
+ }
334
+ },
335
+ {
336
+ "version": "1.0",
337
+ "attributes": {
338
+ "valid": {
339
+ "from": "2013-10-01T18:59:31+00:00",
340
+ "to": "3013-10-01T18:59:31+00:00"
341
+ },
342
+ "created": "2013-10-01T18:59:31+00:00",
343
+ "modified": "2013-10-04T16:02:37+00:00",
344
+ "tags": [
345
+ "testcontent"
346
+ ],
347
+ "title": "Public Radio International",
348
+ "guid": "7a865268-c9de-4b27-a3c1-983adad90921",
349
+ "published": "2013-10-01T18:59:31+00:00"
350
+ },
351
+ "links": {
352
+ "profile": [
353
+ {
354
+ "href": "https://api-sandbox.pmp.io/profiles/user"
355
+ }
356
+ ],
357
+ "creator": [
358
+ {
359
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
360
+ }
361
+ ],
362
+ "navigation": [
363
+ {
364
+ "href": "https://api-sandbox.pmp.io/docs?guid=7a865268-c9de-4b27-a3c1-983adad90921",
365
+ "rels": [
366
+ "urn:pmp:navigation:self"
367
+ ]
368
+ }
369
+ ],
370
+ "edit": [
371
+ {
372
+ "href": "https://publish-sandbox.pmp.io/docs",
373
+ "method": "PUT"
374
+ }
375
+ ]
376
+ }
377
+ },
378
+ {
379
+ "version": "1.0",
380
+ "attributes": {
381
+ "valid": {
382
+ "from": "2013-10-01T18:59:31+00:00",
383
+ "to": "3013-10-01T18:59:31+00:00"
384
+ },
385
+ "created": "2013-10-01T18:59:31+00:00",
386
+ "modified": "2013-10-04T16:02:37+00:00",
387
+ "tags": [
388
+ "testcontent"
389
+ ],
390
+ "title": "Public Broadcasting Service",
391
+ "guid": "fc53c568-e939-4d9c-86ea-c2a2c70f1a99",
392
+ "published": "2013-10-01T18:59:31+00:00"
393
+ },
394
+ "links": {
395
+ "profile": [
396
+ {
397
+ "href": "https://api-sandbox.pmp.io/profiles/user"
398
+ }
399
+ ],
400
+ "creator": [
401
+ {
402
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
403
+ }
404
+ ],
405
+ "navigation": [
406
+ {
407
+ "href": "https://api-sandbox.pmp.io/docs?guid=fc53c568-e939-4d9c-86ea-c2a2c70f1a99",
408
+ "rels": [
409
+ "urn:pmp:navigation:self"
410
+ ]
411
+ }
412
+ ],
413
+ "edit": [
414
+ {
415
+ "href": "https://publish-sandbox.pmp.io/docs",
416
+ "method": "PUT"
417
+ }
418
+ ]
419
+ }
420
+ },
421
+ {
422
+ "version": "1.0",
423
+ "attributes": {
424
+ "valid": {
425
+ "from": "2013-10-01T18:59:30+00:00",
426
+ "to": "3013-10-01T18:59:30+00:00"
427
+ },
428
+ "created": "2013-10-01T18:59:30+00:00",
429
+ "modified": "2013-10-04T16:02:36+00:00",
430
+ "tags": [
431
+ "testcontent"
432
+ ],
433
+ "title": "NPR Digital Services",
434
+ "guid": "39b744ba-e132-4ef3-9099-885aef0ff2f1",
435
+ "published": "2013-10-01T18:59:30+00:00"
436
+ },
437
+ "links": {
438
+ "profile": [
439
+ {
440
+ "href": "https://api-sandbox.pmp.io/profiles/user"
441
+ }
442
+ ],
443
+ "creator": [
444
+ {
445
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
446
+ }
447
+ ],
448
+ "navigation": [
449
+ {
450
+ "href": "https://api-sandbox.pmp.io/docs?guid=39b744ba-e132-4ef3-9099-885aef0ff2f1",
451
+ "rels": [
452
+ "urn:pmp:navigation:self"
453
+ ]
454
+ }
455
+ ],
456
+ "edit": [
457
+ {
458
+ "href": "https://publish-sandbox.pmp.io/docs",
459
+ "method": "PUT"
460
+ }
461
+ ]
462
+ }
463
+ },
464
+ {
465
+ "version": "1.0",
466
+ "attributes": {
467
+ "valid": {
468
+ "from": "2013-10-01T18:52:12+00:00",
469
+ "to": "3013-10-01T18:52:12+00:00"
470
+ },
471
+ "created": "2013-10-01T18:52:12+00:00",
472
+ "modified": "2013-10-04T16:02:37+00:00",
473
+ "tags": [
474
+ "testcontent"
475
+ ],
476
+ "title": "Irakli Nadareishvili",
477
+ "published": "2013-10-01T18:52:12+00:00",
478
+ "guid": "6c06b198-555f-458a-bf0d-3e0864e19afe"
479
+ },
480
+ "links": {
481
+ "profile": [
482
+ {
483
+ "href": "https://api-sandbox.pmp.io/profiles/user"
484
+ }
485
+ ],
486
+ "creator": [
487
+ {
488
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
489
+ }
490
+ ],
491
+ "navigation": [
492
+ {
493
+ "href": "https://api-sandbox.pmp.io/docs?guid=6c06b198-555f-458a-bf0d-3e0864e19afe",
494
+ "rels": [
495
+ "urn:pmp:navigation:self"
496
+ ]
497
+ }
498
+ ],
499
+ "edit": [
500
+ {
501
+ "href": "https://publish-sandbox.pmp.io/docs",
502
+ "method": "PUT"
503
+ }
504
+ ]
505
+ }
506
+ },
507
+ {
508
+ "version": "1.0",
509
+ "attributes": {
510
+ "valid": {
511
+ "from": "2013-10-01T18:41:20+00:00",
512
+ "to": "3013-10-01T18:41:20+00:00"
513
+ },
514
+ "created": "2013-10-01T18:41:20+00:00",
515
+ "modified": "2013-10-04T16:02:36+00:00",
516
+ "tags": [
517
+ "testcontent"
518
+ ],
519
+ "title": "Irakli Nadareishvili",
520
+ "published": "2013-10-01T18:41:20+00:00",
521
+ "guid": "062f6610-7f13-486c-8b0e-d5a1b1c4fc9b"
522
+ },
523
+ "links": {
524
+ "profile": [
525
+ {
526
+ "href": "https://api-sandbox.pmp.io/profiles/user"
527
+ }
528
+ ],
529
+ "creator": [
530
+ {
531
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
532
+ }
533
+ ],
534
+ "navigation": [
535
+ {
536
+ "href": "https://api-sandbox.pmp.io/docs?guid=062f6610-7f13-486c-8b0e-d5a1b1c4fc9b",
537
+ "rels": [
538
+ "urn:pmp:navigation:self"
539
+ ]
540
+ }
541
+ ],
542
+ "edit": [
543
+ {
544
+ "href": "https://publish-sandbox.pmp.io/docs",
545
+ "method": "PUT"
546
+ }
547
+ ]
548
+ }
549
+ },
550
+ {
551
+ "version": "1.0",
552
+ "attributes": {
553
+ "valid": {
554
+ "from": "2013-10-01T18:16:06+00:00",
555
+ "to": "3013-10-01T18:16:06+00:00"
556
+ },
557
+ "created": "2013-10-01T18:16:06+00:00",
558
+ "modified": "2013-10-04T16:02:36+00:00",
559
+ "tags": [
560
+ "testcontent"
561
+ ],
562
+ "title": "Lorem Ipsum",
563
+ "guid": "344ffbfa-090b-4fd4-b343-d12b4e3cfc35",
564
+ "published": "2013-10-01T18:16:06+00:00"
565
+ },
566
+ "links": {
567
+ "profile": [
568
+ {
569
+ "href": "https://api-sandbox.pmp.io/profiles/user"
570
+ }
571
+ ],
572
+ "creator": [
573
+ {
574
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
575
+ }
576
+ ],
577
+ "navigation": [
578
+ {
579
+ "href": "https://api-sandbox.pmp.io/docs?guid=344ffbfa-090b-4fd4-b343-d12b4e3cfc35",
580
+ "rels": [
581
+ "urn:pmp:navigation:self"
582
+ ]
583
+ }
584
+ ],
585
+ "edit": [
586
+ {
587
+ "href": "https://publish-sandbox.pmp.io/docs",
588
+ "method": "PUT"
589
+ }
590
+ ]
591
+ }
592
+ },
593
+ {
594
+ "version": "1.0",
595
+ "attributes": {
596
+ "valid": {
597
+ "from": "2013-07-04T04:00:44+00:00",
598
+ "to": "3013-07-04T04:00:44+00:00"
599
+ },
600
+ "created": "2013-10-01T15:57:55+00:00",
601
+ "modified": "2013-10-04T16:02:37+00:00",
602
+ "guid": "af676335-21df-4486-ab43-e88c1b48f026",
603
+ "title": "PMP User",
604
+ "address": [
605
+
606
+ ],
607
+ "pingbacks": {
608
+
609
+ },
610
+ "published": "2013-07-04T04:00:44+00:00"
611
+ },
612
+ "links": {
613
+ "profile": [
614
+ {
615
+ "href": "https://api-sandbox.pmp.io/profiles/user"
616
+ }
617
+ ],
618
+ "creator": [
619
+ {
620
+ "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
621
+ }
622
+ ],
623
+ "navigation": [
624
+ {
625
+ "href": "https://api-sandbox.pmp.io/docs?guid=af676335-21df-4486-ab43-e88c1b48f026",
626
+ "rels": [
627
+ "urn:pmp:navigation:self"
628
+ ]
629
+ }
630
+ ],
631
+ "edit": [
632
+ {
633
+ "href": "https://publish-sandbox.pmp.io/docs",
634
+ "method": "PUT"
635
+ }
636
+ ]
637
+ }
638
+ }
639
+ ]
640
+ }