pmp 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1aaa1c5c06065ba12e2b7b0ed571fb423b4bc845
4
- data.tar.gz: 614cac49e7b7e22ce65a84e8f9378f3ca69cfa78
3
+ metadata.gz: c72afc8f62a4b52dbd5c64cda59ae156da8ad2db
4
+ data.tar.gz: 1ac3fbe0675362c8df8fb638d183bde8ace6d84f
5
5
  SHA512:
6
- metadata.gz: afc288ea482769b5b8423403242bb0951ed9c7aa9c279da3b687a4d5c7d405596a96bf2459a42052a2a57d21b534368075e5460109d3aa691348f587d677a14c
7
- data.tar.gz: aa8b076cb62f6b9f0d635836208633a31f79129c6aa77dc210f744abb6bd8cb6e7558d6e755df31e071b787e3d5e8bc693d116d6670ca901872cb3ab0d321cb4
6
+ metadata.gz: 41c25310c5905255a64b395dbf1d1c2a88422e1804547cb886b4083f2828a52d9519f31e7f7f97c955238c94ef7a7ba4ce56b3192617becbd38235fcdb87726e
7
+ data.tar.gz: 83d27763b3c57efe0d1477c2aebddcff4d2aedd968dc5b5564d8abeebaea8440ad6064eddaea06f7f4ffc19b2ccd0df801da2a2c6193fc105fcf3d4221e56c03
@@ -0,0 +1,8 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0.0
5
+ notifications:
6
+ email:
7
+ - andrew@prx.org
8
+
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # PMP gem
2
2
 
3
+ [![Build Status](https://travis-ci.org/PRX/pmp.png)](https://travis-ci.org/PRX/pmp)
4
+
3
5
  Gem to make it easier to use the PMP API, which is a hypermedia API using the collection.doc+json format.
4
6
 
5
7
  https://github.com/publicmediaplatform/pmpdocs/wiki
@@ -15,7 +15,8 @@ module PMP
15
15
  end
16
16
 
17
17
  def root(opts={}, &block)
18
- @root ||= PMP::CollectionDocument.new(options.merge(opts), &block)
18
+ opts = options.merge(href: endpoint).merge(opts)
19
+ @root ||= PMP::CollectionDocument.new(opts, &block)
19
20
  end
20
21
 
21
22
  end
@@ -41,7 +41,7 @@ module PMP
41
41
  super()
42
42
 
43
43
  self.links = PMP::Links.new(self)
44
-
44
+ self.version = options.delete(:version) || '1.0'
45
45
  self.href = options.delete(:href)
46
46
 
47
47
  # if there is a doc to be had, pull it out
@@ -50,13 +50,14 @@ module PMP
50
50
 
51
51
  apply_configuration(options)
52
52
 
53
- if !loaded? && !href
54
- self.href = endpoint
55
- end
56
-
57
53
  yield(self) if block_given?
58
54
  end
59
55
 
56
+ def items
57
+ load
58
+ @items
59
+ end
60
+
60
61
  def attributes
61
62
  HashWithIndifferentAccess.new(marshal_dump.delete_if{|k,v| links.keys.include?(k.to_s)})
62
63
  end
@@ -77,28 +78,36 @@ module PMP
77
78
  end
78
79
 
79
80
  def load
80
- if !loaded?
81
- self.response = request(:get, self.href || self.self.url)
81
+ if !loaded? && href
82
+ self.response = request(:get, href)
82
83
  self.loaded = true
83
84
  end
84
85
  end
85
86
  alias_method :get, :load
86
87
 
87
88
  def save
88
- save_link = self.edit
89
- raise 'Edit link does not specify saving via put' unless (save_link && save_link.hints.allow.include?('PUT'))
90
89
  set_guid_if_blank
91
- url = save_link.where(guid: self.guid).url
90
+
91
+ url = edit_link('PUT').where(guid: self.guid).url
92
92
  request(:put, url, self)
93
93
  end
94
94
 
95
95
  def delete
96
- delete_link = self.edit
97
- raise 'Edit link does not specify deleting' unless (delete_link && delete_link.hints.allow.include?('DELETE'))
98
96
  raise 'No guid specified to delete' if self.guid.blank?
99
97
 
100
- url = delete_link.where(guid: self.guid).url
101
- request(:put, url, self)
98
+ url = edit_link('DELETE').where(guid: self.guid).url
99
+ request(:delete, url)
100
+ end
101
+
102
+ def edit_link(method)
103
+ # first, need the root, use the endpoint
104
+ link = root_document.edit['urn:pmp:form:documentsave']
105
+ raise "Edit link does not specify saving via #{method}" unless (link && link.hints.allow.include?(method))
106
+ link
107
+ end
108
+
109
+ def root_document
110
+ PMP::CollectionDocument.new(options.merge(href: endpoint))
102
111
  end
103
112
 
104
113
  def loaded?
@@ -25,28 +25,19 @@ module PMP
25
25
 
26
26
  attr_accessor :params
27
27
 
28
- def initialize(parent=PMP::CollectionDocument.new, link={})
28
+ def initialize(parent=nil, link={})
29
29
  super()
30
- self.parent = parent
30
+ self.parent = parent || PMP::CollectionDocument.new
31
31
  self.params = link.delete('params') || {}
32
32
  # puts "params: #{params.inspect}"
33
33
  parse_attributes(link)
34
- end
35
-
36
- def href
37
- self[:href]
38
- end
39
-
40
- def href_template
41
- self[:href_template]
42
- end
43
-
44
- def method
45
- self[:method]
34
+ [:href, :href_template, :method].each{|m| self.send("#{m}=", nil) unless respond_to?(m)}
46
35
  end
47
36
 
48
37
  def attributes
49
- HashWithIndifferentAccess.new(marshal_dump)
38
+ attrs = HashWithIndifferentAccess.new(marshal_dump)
39
+ attrs.delete(attrs[:href_template].blank? ? :href_template : :href)
40
+ attrs
50
41
  end
51
42
 
52
43
  def where(params={})
@@ -66,7 +57,8 @@ module PMP
66
57
  def retrieve
67
58
  # puts "retrieve method: #{method}"
68
59
  # puts "retrieve url: #{url}"
69
- parent.request((method || 'get').to_sym, url)
60
+ # response = parent.request((method || 'get').to_sym, url)
61
+ PMP::CollectionDocument.new(parent.options.merge(href: url))
70
62
  end
71
63
 
72
64
  def method_missing(method, *args)
@@ -74,10 +66,11 @@ module PMP
74
66
  # this is a method the link supports, call the link
75
67
  # if this is an assignment, assign to the link
76
68
  # if you want to assign to a linked doc(s), need to retrieve first
77
- if self.respond_to?(method)
78
- self.send(method, *args)
79
- elsif method.to_s.last == '='
69
+ method_last = method.to_s.last
70
+ if method_last == '='
80
71
  super
72
+ elsif self.respond_to?(method)
73
+ self.send(method, *args)
81
74
  else
82
75
  # puts "mm retrieve and send: #{method}"
83
76
  self.retrieve.send(method, *args)
@@ -71,12 +71,14 @@ module PMP
71
71
  end
72
72
 
73
73
  def parse_link(name, info)
74
- if !info.is_a?(Array)
74
+ if ['query', 'edit', 'navigation'].include?(name.to_s)
75
+ parse_links_list(info)
76
+ elsif !info.is_a?(Array)
75
77
  Link.new(self, info)
76
78
  elsif info.size == 1
77
79
  Link.new(self, info.first)
78
- elsif info.size > 0
79
- parse_links_list(info)
80
+ elsif info.size > 0
81
+ info.map{|l| Link.new(self, l)}
80
82
  end
81
83
  end
82
84
 
@@ -1,5 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  module PMP
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
@@ -20,7 +20,6 @@ Gem::Specification.new do |gem|
20
20
 
21
21
  gem.add_development_dependency('bundler', '~> 1.3')
22
22
  gem.add_development_dependency('rake')
23
- gem.add_development_dependency('rake')
24
23
  gem.add_development_dependency('minitest')
25
24
  gem.add_development_dependency('webmock')
26
25
  gem.add_development_dependency('pry')
@@ -24,7 +24,9 @@ describe PMP::CollectionDocument do
24
24
  end
25
25
 
26
26
  it "should default href to endpoint" do
27
- @doc.href.must_equal "https://api.pmp.io/"
27
+ @doc.href.must_be_nil
28
+ @doc.href = "https://api.pmp.io/"
29
+ @doc.href.must_equal "https://api.pmp.io/"
28
30
  end
29
31
  end
30
32
 
@@ -91,7 +93,7 @@ describe PMP::CollectionDocument do
91
93
  with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
92
94
  to_return(:status => 200, :body => root_doc, :headers => {})
93
95
 
94
- @doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken')
96
+ @doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken', href: "https://api.pmp.io/")
95
97
  }
96
98
 
97
99
  it "should use oauth token" do
@@ -133,7 +135,7 @@ describe PMP::CollectionDocument do
133
135
  with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
134
136
  to_return(:status => 200, :body => root_doc, :headers => {})
135
137
 
136
- @doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken')
138
+ @doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken', href: "https://api.pmp.io/")
137
139
  }
138
140
 
139
141
  it "should get the list of query links" do
@@ -151,11 +153,46 @@ describe PMP::CollectionDocument do
151
153
  describe 'persistence' do
152
154
 
153
155
  it "can set missing guid" do
154
-
156
+ doc = PMP::CollectionDocument.new
157
+ doc.guid.must_be_nil
158
+ doc.set_guid_if_blank
159
+ doc.guid.wont_be_nil
155
160
  end
156
161
 
157
162
  it "can save a new record" do
158
163
 
164
+ # stub getting the root doc
165
+ root_doc = json_file(:collection_root)
166
+ stub_request(:get, "https://api.pmp.io/").
167
+ with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
168
+ to_return(:status => 200, :body => root_doc, :headers => {})
169
+
170
+ # stub saving the new doc
171
+ stub_request(:put, "https://publish-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
172
+ with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'publish-sandbox.pmp.io:443'}).
173
+ to_return(:status => 200, :body => '{"url":"https://publish-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42"}')
174
+
175
+ doc = PMP::CollectionDocument.new
176
+ doc.guid = "c144e4df-021b-41e6-9cf3-42ac49bcbd42"
177
+ doc.title = "testing"
178
+ doc.save
179
+ end
180
+
181
+ it "can delete a record" do
182
+
183
+ # stub getting the root doc
184
+ root_doc = json_file(:collection_root)
185
+ stub_request(:get, "https://api.pmp.io/").
186
+ with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
187
+ to_return(:status => 200, :body => root_doc, :headers => {})
188
+
189
+ stub_request(:delete, "https://publish-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
190
+ with(:headers => {'Accept'=>'application/vnd.pmp.collection.doc+json', 'Content-Type'=>'application/vnd.pmp.collection.doc+json', 'Host'=>'publish-sandbox.pmp.io:443'}).
191
+ to_return(:status => 204, :body => "", :headers => {})
192
+
193
+ doc = PMP::CollectionDocument.new
194
+ doc.guid = "c144e4df-021b-41e6-9cf3-42ac49bcbd42"
195
+ doc.delete
159
196
  end
160
197
 
161
198
  end
@@ -2,54 +2,75 @@
2
2
  "version": "1.0",
3
3
  "attributes": {
4
4
  "valid": {
5
- "from": "2013-10-04T16:02:36+00:00",
6
- "to": "3013-10-04T16:02:36+00:00"
5
+ "from": "2013-10-18T02:52:05+00:00",
6
+ "to": "3013-10-18T02:52:05+00:00"
7
7
  },
8
- "created": "2013-10-04T16:02:36+00:00",
9
- "modified": "2013-10-04T16:02:36+00:00"
8
+ "created": "2013-10-18T02:52:05+00:00",
9
+ "modified": "2013-10-18T02:52:05+00:00"
10
10
  },
11
11
  "links": {
12
12
  "item": [
13
13
  {
14
- "href": "https://api-sandbox.pmp.io/docs/98bf597a-2a6f-446c-9b7e-d8ae60122f0d"
14
+ "href": "https://api-sandbox.pmp.io/docs/03acacda-f397-4515-857e-ad1f199dc8f0"
15
15
  },
16
16
  {
17
- "href": "https://api-sandbox.pmp.io/docs/609a539c-9177-4aa7-acde-c10b77a6a525"
17
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
18
18
  },
19
19
  {
20
- "href": "https://api-sandbox.pmp.io/docs/6140faf0-fb45-4a95-859a-070037fafa01"
20
+ "href": "https://api-sandbox.pmp.io/docs/0bab001c-5eb9-2d2f-011c-111751a609ca"
21
21
  },
22
22
  {
23
- "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
23
+ "href": "https://api-sandbox.pmp.io/docs/ca7b2bba-4157-4ac3-810e-9f6a0fbe3968"
24
24
  },
25
25
  {
26
- "href": "https://api-sandbox.pmp.io/docs/fc53c568-e939-4d9c-86ea-c2a2c70f1a99"
26
+ "href": "https://api-sandbox.pmp.io/docs/465998de-012b-49ff-84fc-2c9c7bf382a6"
27
27
  },
28
28
  {
29
- "href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
29
+ "href": "https://api-sandbox.pmp.io/docs/e30690e1-3f20-408a-9dba-94172caf49c7"
30
30
  },
31
31
  {
32
- "href": "https://api-sandbox.pmp.io/docs/6c06b198-555f-458a-bf0d-3e0864e19afe"
32
+ "href": "https://api-sandbox.pmp.io/docs/d93c9f40-377f-40fa-a5b5-627211a72299"
33
33
  },
34
34
  {
35
- "href": "https://api-sandbox.pmp.io/docs/062f6610-7f13-486c-8b0e-d5a1b1c4fc9b"
35
+ "href": "https://api-sandbox.pmp.io/docs/2335cc13-a9ad-4692-98df-9c2b72e50dbd"
36
36
  },
37
37
  {
38
- "href": "https://api-sandbox.pmp.io/docs/344ffbfa-090b-4fd4-b343-d12b4e3cfc35"
38
+ "href": "https://api-sandbox.pmp.io/docs/d2754131-3c4d-4edb-a186-cce67ed68995"
39
39
  },
40
40
  {
41
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
41
+ "href": "https://api-sandbox.pmp.io/docs/3268cca2-8879-40e4-8d11-f1bacbda2866"
42
42
  }
43
43
  ],
44
44
  "navigation": [
45
45
  {
46
- "href": "https://api-sandbox.pmp.io/docs?profile=621a1ab8-a78b-48bf-8fbb-776d3d2a82d1",
46
+ "href": "https://api-sandbox.pmp.io/docs?",
47
47
  "rels": [
48
48
  "urn:pmp:navigation:self"
49
49
  ],
50
- "totalitems": 10,
51
- "totalpages": 1,
50
+ "totalitems": 150,
51
+ "totalpages": 15,
52
52
  "pagenum": 1
53
+ },
54
+ {
55
+ "href": "https://api-sandbox.pmp.io/docs?offset=10",
56
+ "rels": [
57
+ "urn:pmp:navigation:next"
58
+ ],
59
+ "pagenum": 2
60
+ },
61
+ {
62
+ "href": "https://api-sandbox.pmp.io/docs?",
63
+ "rels": [
64
+ "urn:pmp:navigation:first"
65
+ ],
66
+ "pagenum": 1
67
+ },
68
+ {
69
+ "href": "https://api-sandbox.pmp.io/docs?offset=150",
70
+ "rels": [
71
+ "urn:pmp:navigation:last"
72
+ ],
73
+ "pagenum": 15
53
74
  }
54
75
  ],
55
76
  "query": [
@@ -105,9 +126,7 @@
105
126
  },
106
127
  "hints": {
107
128
  "allow": [
108
- "GET",
109
- "PUT",
110
- "DELETE"
129
+ "GET"
111
130
  ]
112
131
  }
113
132
  },
@@ -122,9 +141,7 @@
122
141
  },
123
142
  "hints": {
124
143
  "allow": [
125
- "GET",
126
- "PUT",
127
- "DELETE"
144
+ "GET"
128
145
  ]
129
146
  },
130
147
  "type": "application/schema+json"
@@ -142,9 +159,7 @@
142
159
  },
143
160
  "hints": {
144
161
  "allow": [
145
- "GET",
146
- "PUT",
147
- "DELETE"
162
+ "GET"
148
163
  ]
149
164
  }
150
165
  },
@@ -182,23 +197,95 @@
182
197
  "rels": [
183
198
  "urn:pmp:query:guids"
184
199
  ],
185
- "method": "POST",
200
+ "hints": {
201
+ "allow": [
202
+ "POST"
203
+ ],
204
+ "accept-post": [
205
+ "application/x-www-form-urlencoded"
206
+ ]
207
+ },
186
208
  "type": "application/json"
209
+ }
210
+ ],
211
+ "edit": [
212
+ {
213
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
214
+ "title": "Document Save",
215
+ "rels": [
216
+ "urn:pmp:form:documentsave"
217
+ ],
218
+ "href-vars": {
219
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
220
+ },
221
+ "hints": {
222
+ "formats": [
223
+ "application/vnd.pmp.collection.doc+json"
224
+ ],
225
+ "allow": [
226
+ "PUT",
227
+ "DELETE"
228
+ ],
229
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
230
+ }
187
231
  },
188
232
  {
189
- "href": "https://publish-sandbox.pmp.io/files",
190
- "title": "Upload media files",
233
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
234
+ "title": "Profile Save",
191
235
  "rels": [
192
- "urn:pmp:query:files"
236
+ "urn:pmp:form:profilesave"
193
237
  ],
194
- "method": "POST",
195
- "type": "multipart/form-data"
196
- }
197
- ],
198
- "edit": [
238
+ "href-vars": {
239
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
240
+ },
241
+ "hints": {
242
+ "formats": [
243
+ "application/vnd.pmp.collection.doc+json"
244
+ ],
245
+ "allow": [
246
+ "PUT",
247
+ "DELETE"
248
+ ],
249
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
250
+ }
251
+ },
252
+ {
253
+ "href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
254
+ "title": "Schema Save",
255
+ "rels": [
256
+ "urn:pmp:form:schemasave"
257
+ ],
258
+ "href-vars": {
259
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
260
+ },
261
+ "hints": {
262
+ "formats": [
263
+ "application/schema+json"
264
+ ],
265
+ "allow": [
266
+ "PUT",
267
+ "DELETE"
268
+ ],
269
+ "docs": "http://json-schema.org/"
270
+ }
271
+ },
199
272
  {
200
- "href": "https://publish-sandbox.pmp.io/docs",
201
- "method": "PUT"
273
+ "href": "https://publish-sandbox.pmp.io/files",
274
+ "title": "Upload a rich media file",
275
+ "rels": [
276
+ "urn:pmp:form:mediaupload"
277
+ ],
278
+ "href-vars": {
279
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
280
+ },
281
+ "hints": {
282
+ "allow": [
283
+ "POST"
284
+ ],
285
+ "accept-post": [
286
+ "multipart/form-data"
287
+ ]
288
+ }
202
289
  }
203
290
  ]
204
291
  },
@@ -207,32 +294,24 @@
207
294
  "version": "1.0",
208
295
  "attributes": {
209
296
  "valid": {
210
- "from": "2013-10-01T18:59:32+00:00",
211
- "to": "3013-10-01T18:59:32+00:00"
297
+ "from": "2013-10-17T14:57:16+00:00",
298
+ "to": "3013-10-17T14:57:16+00:00"
212
299
  },
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"
300
+ "created": "2013-10-17T14:57:16+00:00",
301
+ "modified": "2013-10-18T02:52:05+00:00",
302
+ "title": "some title",
303
+ "published": "2013-10-17T14:57:16+00:00",
304
+ "guid": "03acacda-f397-4515-857e-ad1f199dc8f0"
221
305
  },
222
306
  "links": {
223
- "profile": [
224
- {
225
- "href": "https://api-sandbox.pmp.io/profiles/user"
226
- }
227
- ],
228
307
  "creator": [
229
308
  {
230
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
309
+ "href": "https://api-sandbox.pmp.io/docs/fc53c568-e939-4d9c-86ea-c2a2c70f1a99"
231
310
  }
232
311
  ],
233
312
  "navigation": [
234
313
  {
235
- "href": "https://api-sandbox.pmp.io/docs?guid=98bf597a-2a6f-446c-9b7e-d8ae60122f0d",
314
+ "href": "https://api-sandbox.pmp.io/docs?guid=03acacda-f397-4515-857e-ad1f199dc8f0",
236
315
  "rels": [
237
316
  "urn:pmp:navigation:self"
238
317
  ]
@@ -240,8 +319,82 @@
240
319
  ],
241
320
  "edit": [
242
321
  {
243
- "href": "https://publish-sandbox.pmp.io/docs",
244
- "method": "PUT"
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
+ },
381
+ {
382
+ "href": "https://publish-sandbox.pmp.io/files",
383
+ "title": "Upload a rich media file",
384
+ "rels": [
385
+ "urn:pmp:form:mediaupload"
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
+ }
245
398
  }
246
399
  ]
247
400
  }
@@ -250,32 +403,23 @@
250
403
  "version": "1.0",
251
404
  "attributes": {
252
405
  "valid": {
253
- "from": "2013-10-01T18:59:32+00:00",
254
- "to": "3013-10-01T18:59:32+00:00"
406
+ "from": "2013-10-17T02:08:21+00:00",
407
+ "to": "3013-10-17T02:08:21+00:00"
255
408
  },
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"
409
+ "created": "2013-10-17T02:08:21+00:00",
410
+ "modified": "2013-10-18T02:52:06+00:00",
411
+ "guid": "03796e02-48f4-40aa-b457-2ffeba3d8d39",
412
+ "published": "2013-10-17T02:08:21+00:00"
264
413
  },
265
414
  "links": {
266
- "profile": [
267
- {
268
- "href": "https://api-sandbox.pmp.io/profiles/user"
269
- }
270
- ],
271
415
  "creator": [
272
416
  {
273
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
417
+ "href": "https://api-sandbox.pmp.io/docs/fc53c568-e939-4d9c-86ea-c2a2c70f1a99"
274
418
  }
275
419
  ],
276
420
  "navigation": [
277
421
  {
278
- "href": "https://api-sandbox.pmp.io/docs?guid=609a539c-9177-4aa7-acde-c10b77a6a525",
422
+ "href": "https://api-sandbox.pmp.io/docs?guid=03796e02-48f4-40aa-b457-2ffeba3d8d39",
279
423
  "rels": [
280
424
  "urn:pmp:navigation:self"
281
425
  ]
@@ -283,8 +427,82 @@
283
427
  ],
284
428
  "edit": [
285
429
  {
286
- "href": "https://publish-sandbox.pmp.io/docs",
287
- "method": "PUT"
430
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
431
+ "title": "Document Save",
432
+ "rels": [
433
+ "urn:pmp:form:documentsave"
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"
457
+ },
458
+ "hints": {
459
+ "formats": [
460
+ "application/vnd.pmp.collection.doc+json"
461
+ ],
462
+ "allow": [
463
+ "PUT",
464
+ "DELETE"
465
+ ],
466
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile"
467
+ }
468
+ },
469
+ {
470
+ "href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
471
+ "title": "Schema Save",
472
+ "rels": [
473
+ "urn:pmp:form:schemasave"
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
+ },
489
+ {
490
+ "href": "https://publish-sandbox.pmp.io/files",
491
+ "title": "Upload a rich media file",
492
+ "rels": [
493
+ "urn:pmp:form:mediaupload"
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
+ }
288
506
  }
289
507
  ]
290
508
  }
@@ -293,22 +511,29 @@
293
511
  "version": "1.0",
294
512
  "attributes": {
295
513
  "valid": {
296
- "from": "2013-10-01T18:59:31+00:00",
297
- "to": "3013-10-01T18:59:31+00:00"
514
+ "from": "2013-10-16T14:47:50+00:00",
515
+ "to": "3013-10-16T14:47:50+00:00"
298
516
  },
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"
517
+ "created": "2013-10-16T14:47:50+00:00",
518
+ "modified": "2013-10-18T02:52:06+00:00",
519
+ "hreflang": "en",
520
+ "guid": "0bab001c-5eb9-2d2f-011c-111751a609ca",
521
+ "title": "Go SOX!",
522
+ "published": "2013-10-16T14:47:49+00:00",
523
+ "teaser": "Top of 2, and score 0-0 And Johnny Gomes fouling off lots of pitches...But Napoli is THA MAN! ",
524
+ "contentencoded": "<p>Top of 2, and score 0-0</p><p>And Johnny Gomes fouling off lots of pitches...But Napoli is THA MAN!</p>"
307
525
  },
308
526
  "links": {
309
527
  "profile": [
310
528
  {
311
- "href": "https://api-sandbox.pmp.io/profiles/user"
529
+ "href": "https://api-sandbox.pmp.io/profiles/story"
530
+ }
531
+ ],
532
+ "alternate": [
533
+ {
534
+ "href": "http://cp-pmp.local/content/go-sox",
535
+ "hreflang": "en",
536
+ "type": "text/html"
312
537
  }
313
538
  ],
314
539
  "creator": [
@@ -318,7 +543,7 @@
318
543
  ],
319
544
  "navigation": [
320
545
  {
321
- "href": "https://api-sandbox.pmp.io/docs?guid=6140faf0-fb45-4a95-859a-070037fafa01",
546
+ "href": "https://api-sandbox.pmp.io/docs?guid=0bab001c-5eb9-2d2f-011c-111751a609ca",
322
547
  "rels": [
323
548
  "urn:pmp:navigation:self"
324
549
  ]
@@ -326,8 +551,82 @@
326
551
  ],
327
552
  "edit": [
328
553
  {
329
- "href": "https://publish-sandbox.pmp.io/docs",
330
- "method": "PUT"
554
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
555
+ "title": "Document Save",
556
+ "rels": [
557
+ "urn:pmp:form:documentsave"
558
+ ],
559
+ "href-vars": {
560
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
561
+ },
562
+ "hints": {
563
+ "formats": [
564
+ "application/vnd.pmp.collection.doc+json"
565
+ ],
566
+ "allow": [
567
+ "PUT",
568
+ "DELETE"
569
+ ],
570
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
571
+ }
572
+ },
573
+ {
574
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
575
+ "title": "Profile Save",
576
+ "rels": [
577
+ "urn:pmp:form:profilesave"
578
+ ],
579
+ "href-vars": {
580
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
581
+ },
582
+ "hints": {
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"
598
+ ],
599
+ "href-vars": {
600
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
601
+ },
602
+ "hints": {
603
+ "formats": [
604
+ "application/schema+json"
605
+ ],
606
+ "allow": [
607
+ "PUT",
608
+ "DELETE"
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"
618
+ ],
619
+ "href-vars": {
620
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
621
+ },
622
+ "hints": {
623
+ "allow": [
624
+ "POST"
625
+ ],
626
+ "accept-post": [
627
+ "multipart/form-data"
628
+ ]
629
+ }
331
630
  }
332
631
  ]
333
632
  }
@@ -336,32 +635,48 @@
336
635
  "version": "1.0",
337
636
  "attributes": {
338
637
  "valid": {
339
- "from": "2013-10-01T18:59:31+00:00",
340
- "to": "3013-10-01T18:59:31+00:00"
638
+ "from": "2013-10-12T19:44:12+00:00",
639
+ "to": "3013-10-12T19:44:12+00:00"
341
640
  },
342
- "created": "2013-10-01T18:59:31+00:00",
343
- "modified": "2013-10-04T16:02:37+00:00",
641
+ "created": "2013-10-12T19:44:12+00:00",
642
+ "modified": "2013-10-18T02:52:05+00:00",
643
+ "guid": "ca7b2bba-4157-4ac3-810e-9f6a0fbe3968",
344
644
  "tags": [
345
- "testcontent"
645
+ "pri",
646
+ "theworld"
346
647
  ],
347
- "title": "Public Radio International",
348
- "guid": "7a865268-c9de-4b27-a3c1-983adad90921",
349
- "published": "2013-10-01T18:59:31+00:00"
648
+ "title": "Pri - The World - Sample Document 1710653593",
649
+ "published": "2013-10-12T19:44:12+00:00"
350
650
  },
351
651
  "links": {
352
652
  "profile": [
353
653
  {
354
- "href": "https://api-sandbox.pmp.io/profiles/user"
654
+ "href": "https://api-sandbox.pmp.io/profiles/story"
655
+ }
656
+ ],
657
+ "collection": [
658
+ {
659
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
660
+ },
661
+ {
662
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
663
+ }
664
+ ],
665
+ "permissions": [
666
+ {
667
+ "href": "https://api-sandbox.pmp.io/groups/empty",
668
+ "operation": "read",
669
+ "blacklist": true
355
670
  }
356
671
  ],
357
672
  "creator": [
358
673
  {
359
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
674
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
360
675
  }
361
676
  ],
362
677
  "navigation": [
363
678
  {
364
- "href": "https://api-sandbox.pmp.io/docs?guid=7a865268-c9de-4b27-a3c1-983adad90921",
679
+ "href": "https://api-sandbox.pmp.io/docs?guid=ca7b2bba-4157-4ac3-810e-9f6a0fbe3968",
365
680
  "rels": [
366
681
  "urn:pmp:navigation:self"
367
682
  ]
@@ -369,8 +684,82 @@
369
684
  ],
370
685
  "edit": [
371
686
  {
372
- "href": "https://publish-sandbox.pmp.io/docs",
373
- "method": "PUT"
687
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
688
+ "title": "Document Save",
689
+ "rels": [
690
+ "urn:pmp:form:documentsave"
691
+ ],
692
+ "href-vars": {
693
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
694
+ },
695
+ "hints": {
696
+ "formats": [
697
+ "application/vnd.pmp.collection.doc+json"
698
+ ],
699
+ "allow": [
700
+ "PUT",
701
+ "DELETE"
702
+ ],
703
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
704
+ }
705
+ },
706
+ {
707
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
708
+ "title": "Profile Save",
709
+ "rels": [
710
+ "urn:pmp:form:profilesave"
711
+ ],
712
+ "href-vars": {
713
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
714
+ },
715
+ "hints": {
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"
731
+ ],
732
+ "href-vars": {
733
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
734
+ },
735
+ "hints": {
736
+ "formats": [
737
+ "application/schema+json"
738
+ ],
739
+ "allow": [
740
+ "PUT",
741
+ "DELETE"
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"
751
+ ],
752
+ "href-vars": {
753
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
754
+ },
755
+ "hints": {
756
+ "allow": [
757
+ "POST"
758
+ ],
759
+ "accept-post": [
760
+ "multipart/form-data"
761
+ ]
762
+ }
374
763
  }
375
764
  ]
376
765
  }
@@ -379,32 +768,48 @@
379
768
  "version": "1.0",
380
769
  "attributes": {
381
770
  "valid": {
382
- "from": "2013-10-01T18:59:31+00:00",
383
- "to": "3013-10-01T18:59:31+00:00"
771
+ "from": "2013-10-12T19:42:31+00:00",
772
+ "to": "3013-10-12T19:42:31+00:00"
384
773
  },
385
- "created": "2013-10-01T18:59:31+00:00",
386
- "modified": "2013-10-04T16:02:37+00:00",
774
+ "created": "2013-10-12T19:42:31+00:00",
775
+ "modified": "2013-10-18T02:52:06+00:00",
776
+ "guid": "465998de-012b-49ff-84fc-2c9c7bf382a6",
387
777
  "tags": [
388
- "testcontent"
778
+ "pri",
779
+ "theworld"
389
780
  ],
390
- "title": "Public Broadcasting Service",
391
- "guid": "fc53c568-e939-4d9c-86ea-c2a2c70f1a99",
392
- "published": "2013-10-01T18:59:31+00:00"
781
+ "title": "Pri - The World - Sample Document 376310831",
782
+ "published": "2013-10-12T19:42:31+00:00"
393
783
  },
394
784
  "links": {
395
785
  "profile": [
396
786
  {
397
- "href": "https://api-sandbox.pmp.io/profiles/user"
787
+ "href": "https://api-sandbox.pmp.io/profiles/story"
788
+ }
789
+ ],
790
+ "collection": [
791
+ {
792
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
793
+ },
794
+ {
795
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
796
+ }
797
+ ],
798
+ "permissions": [
799
+ {
800
+ "href": "https://api-sandbox.pmp.io/groups/empty",
801
+ "operation": "read",
802
+ "blacklist": true
398
803
  }
399
804
  ],
400
805
  "creator": [
401
806
  {
402
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
807
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
403
808
  }
404
809
  ],
405
810
  "navigation": [
406
811
  {
407
- "href": "https://api-sandbox.pmp.io/docs?guid=fc53c568-e939-4d9c-86ea-c2a2c70f1a99",
812
+ "href": "https://api-sandbox.pmp.io/docs?guid=465998de-012b-49ff-84fc-2c9c7bf382a6",
408
813
  "rels": [
409
814
  "urn:pmp:navigation:self"
410
815
  ]
@@ -412,8 +817,82 @@
412
817
  ],
413
818
  "edit": [
414
819
  {
415
- "href": "https://publish-sandbox.pmp.io/docs",
416
- "method": "PUT"
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
+ }
417
896
  }
418
897
  ]
419
898
  }
@@ -422,32 +901,48 @@
422
901
  "version": "1.0",
423
902
  "attributes": {
424
903
  "valid": {
425
- "from": "2013-10-01T18:59:30+00:00",
426
- "to": "3013-10-01T18:59:30+00:00"
904
+ "from": "2013-10-12T19:39:53+00:00",
905
+ "to": "3013-10-12T19:39:53+00:00"
427
906
  },
428
- "created": "2013-10-01T18:59:30+00:00",
429
- "modified": "2013-10-04T16:02:36+00:00",
907
+ "created": "2013-10-12T19:39:53+00:00",
908
+ "modified": "2013-10-18T02:52:06+00:00",
909
+ "guid": "e30690e1-3f20-408a-9dba-94172caf49c7",
430
910
  "tags": [
431
- "testcontent"
911
+ "pri",
912
+ "theworld"
432
913
  ],
433
- "title": "NPR Digital Services",
434
- "guid": "39b744ba-e132-4ef3-9099-885aef0ff2f1",
435
- "published": "2013-10-01T18:59:30+00:00"
914
+ "title": "Pri - The World - Sample Document 1709974695",
915
+ "published": "2013-10-12T19:39:53+00:00"
436
916
  },
437
917
  "links": {
438
918
  "profile": [
439
919
  {
440
- "href": "https://api-sandbox.pmp.io/profiles/user"
920
+ "href": "https://api-sandbox.pmp.io/profiles/story"
921
+ }
922
+ ],
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
441
936
  }
442
937
  ],
443
938
  "creator": [
444
939
  {
445
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
940
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
446
941
  }
447
942
  ],
448
943
  "navigation": [
449
944
  {
450
- "href": "https://api-sandbox.pmp.io/docs?guid=39b744ba-e132-4ef3-9099-885aef0ff2f1",
945
+ "href": "https://api-sandbox.pmp.io/docs?guid=e30690e1-3f20-408a-9dba-94172caf49c7",
451
946
  "rels": [
452
947
  "urn:pmp:navigation:self"
453
948
  ]
@@ -455,8 +950,82 @@
455
950
  ],
456
951
  "edit": [
457
952
  {
458
- "href": "https://publish-sandbox.pmp.io/docs",
459
- "method": "PUT"
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
+ }
460
1029
  }
461
1030
  ]
462
1031
  }
@@ -465,32 +1034,41 @@
465
1034
  "version": "1.0",
466
1035
  "attributes": {
467
1036
  "valid": {
468
- "from": "2013-10-01T18:52:12+00:00",
469
- "to": "3013-10-01T18:52:12+00:00"
1037
+ "from": "2013-10-12T02:44:02+00:00",
1038
+ "to": "3013-10-12T02:44:02+00:00"
470
1039
  },
471
- "created": "2013-10-01T18:52:12+00:00",
472
- "modified": "2013-10-04T16:02:37+00:00",
1040
+ "created": "2013-10-12T02:44:02+00:00",
1041
+ "modified": "2013-10-18T02:52:06+00:00",
1042
+ "guid": "d93c9f40-377f-40fa-a5b5-627211a72299",
473
1043
  "tags": [
474
- "testcontent"
1044
+ "pri",
1045
+ "theworld"
475
1046
  ],
476
- "title": "Irakli Nadareishvili",
477
- "published": "2013-10-01T18:52:12+00:00",
478
- "guid": "6c06b198-555f-458a-bf0d-3e0864e19afe"
1047
+ "title": "Pri - The World - Sample Document 1064030999",
1048
+ "published": "2013-10-12T02:44:02+00:00"
479
1049
  },
480
1050
  "links": {
481
1051
  "profile": [
482
1052
  {
483
- "href": "https://api-sandbox.pmp.io/profiles/user"
1053
+ "href": "https://api-sandbox.pmp.io/profiles/story"
1054
+ }
1055
+ ],
1056
+ "collection": [
1057
+ {
1058
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
1059
+ },
1060
+ {
1061
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
484
1062
  }
485
1063
  ],
486
1064
  "creator": [
487
1065
  {
488
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
1066
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
489
1067
  }
490
1068
  ],
491
1069
  "navigation": [
492
1070
  {
493
- "href": "https://api-sandbox.pmp.io/docs?guid=6c06b198-555f-458a-bf0d-3e0864e19afe",
1071
+ "href": "https://api-sandbox.pmp.io/docs?guid=d93c9f40-377f-40fa-a5b5-627211a72299",
494
1072
  "rels": [
495
1073
  "urn:pmp:navigation:self"
496
1074
  ]
@@ -498,8 +1076,82 @@
498
1076
  ],
499
1077
  "edit": [
500
1078
  {
501
- "href": "https://publish-sandbox.pmp.io/docs",
502
- "method": "PUT"
1079
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
1080
+ "title": "Document Save",
1081
+ "rels": [
1082
+ "urn:pmp:form:documentsave"
1083
+ ],
1084
+ "href-vars": {
1085
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1086
+ },
1087
+ "hints": {
1088
+ "formats": [
1089
+ "application/vnd.pmp.collection.doc+json"
1090
+ ],
1091
+ "allow": [
1092
+ "PUT",
1093
+ "DELETE"
1094
+ ],
1095
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
1096
+ }
1097
+ },
1098
+ {
1099
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
1100
+ "title": "Profile Save",
1101
+ "rels": [
1102
+ "urn:pmp:form:profilesave"
1103
+ ],
1104
+ "href-vars": {
1105
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1106
+ },
1107
+ "hints": {
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"
1123
+ ],
1124
+ "href-vars": {
1125
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1126
+ },
1127
+ "hints": {
1128
+ "formats": [
1129
+ "application/schema+json"
1130
+ ],
1131
+ "allow": [
1132
+ "PUT",
1133
+ "DELETE"
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"
1143
+ ],
1144
+ "href-vars": {
1145
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
1146
+ },
1147
+ "hints": {
1148
+ "allow": [
1149
+ "POST"
1150
+ ],
1151
+ "accept-post": [
1152
+ "multipart/form-data"
1153
+ ]
1154
+ }
503
1155
  }
504
1156
  ]
505
1157
  }
@@ -508,32 +1160,41 @@
508
1160
  "version": "1.0",
509
1161
  "attributes": {
510
1162
  "valid": {
511
- "from": "2013-10-01T18:41:20+00:00",
512
- "to": "3013-10-01T18:41:20+00:00"
1163
+ "from": "2013-10-12T02:43:11+00:00",
1164
+ "to": "3013-10-12T02:43:11+00:00"
513
1165
  },
514
- "created": "2013-10-01T18:41:20+00:00",
515
- "modified": "2013-10-04T16:02:36+00:00",
1166
+ "created": "2013-10-12T02:43:11+00:00",
1167
+ "modified": "2013-10-18T02:52:06+00:00",
1168
+ "guid": "2335cc13-a9ad-4692-98df-9c2b72e50dbd",
516
1169
  "tags": [
517
- "testcontent"
1170
+ "pri",
1171
+ "theworld"
518
1172
  ],
519
- "title": "Irakli Nadareishvili",
520
- "published": "2013-10-01T18:41:20+00:00",
521
- "guid": "062f6610-7f13-486c-8b0e-d5a1b1c4fc9b"
1173
+ "title": "Pri - The World - Sample Document 787006142",
1174
+ "published": "2013-10-12T02:43:11+00:00"
522
1175
  },
523
1176
  "links": {
524
1177
  "profile": [
525
1178
  {
526
- "href": "https://api-sandbox.pmp.io/profiles/user"
1179
+ "href": "https://api-sandbox.pmp.io/profiles/story"
1180
+ }
1181
+ ],
1182
+ "collection": [
1183
+ {
1184
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
1185
+ },
1186
+ {
1187
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
527
1188
  }
528
1189
  ],
529
1190
  "creator": [
530
1191
  {
531
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
1192
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
532
1193
  }
533
1194
  ],
534
1195
  "navigation": [
535
1196
  {
536
- "href": "https://api-sandbox.pmp.io/docs?guid=062f6610-7f13-486c-8b0e-d5a1b1c4fc9b",
1197
+ "href": "https://api-sandbox.pmp.io/docs?guid=2335cc13-a9ad-4692-98df-9c2b72e50dbd",
537
1198
  "rels": [
538
1199
  "urn:pmp:navigation:self"
539
1200
  ]
@@ -541,8 +1202,82 @@
541
1202
  ],
542
1203
  "edit": [
543
1204
  {
544
- "href": "https://publish-sandbox.pmp.io/docs",
545
- "method": "PUT"
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
+ }
546
1281
  }
547
1282
  ]
548
1283
  }
@@ -551,32 +1286,41 @@
551
1286
  "version": "1.0",
552
1287
  "attributes": {
553
1288
  "valid": {
554
- "from": "2013-10-01T18:16:06+00:00",
555
- "to": "3013-10-01T18:16:06+00:00"
1289
+ "from": "2013-10-12T02:22:39+00:00",
1290
+ "to": "3013-10-12T02:22:39+00:00"
556
1291
  },
557
- "created": "2013-10-01T18:16:06+00:00",
558
- "modified": "2013-10-04T16:02:36+00:00",
1292
+ "created": "2013-10-12T02:22:39+00:00",
1293
+ "modified": "2013-10-18T02:52:06+00:00",
1294
+ "guid": "d2754131-3c4d-4edb-a186-cce67ed68995",
559
1295
  "tags": [
560
- "testcontent"
1296
+ "pri",
1297
+ "theworld"
561
1298
  ],
562
- "title": "Lorem Ipsum",
563
- "guid": "344ffbfa-090b-4fd4-b343-d12b4e3cfc35",
564
- "published": "2013-10-01T18:16:06+00:00"
1299
+ "title": "Pri - The World - Sample Document 523684005",
1300
+ "published": "2013-10-12T02:22:39+00:00"
565
1301
  },
566
1302
  "links": {
567
1303
  "profile": [
568
1304
  {
569
- "href": "https://api-sandbox.pmp.io/profiles/user"
1305
+ "href": "https://api-sandbox.pmp.io/profiles/story"
1306
+ }
1307
+ ],
1308
+ "collection": [
1309
+ {
1310
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
1311
+ },
1312
+ {
1313
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
570
1314
  }
571
1315
  ],
572
1316
  "creator": [
573
1317
  {
574
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
1318
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
575
1319
  }
576
1320
  ],
577
1321
  "navigation": [
578
1322
  {
579
- "href": "https://api-sandbox.pmp.io/docs?guid=344ffbfa-090b-4fd4-b343-d12b4e3cfc35",
1323
+ "href": "https://api-sandbox.pmp.io/docs?guid=d2754131-3c4d-4edb-a186-cce67ed68995",
580
1324
  "rels": [
581
1325
  "urn:pmp:navigation:self"
582
1326
  ]
@@ -584,8 +1328,82 @@
584
1328
  ],
585
1329
  "edit": [
586
1330
  {
587
- "href": "https://publish-sandbox.pmp.io/docs",
588
- "method": "PUT"
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
+ }
589
1407
  }
590
1408
  ]
591
1409
  }
@@ -594,35 +1412,41 @@
594
1412
  "version": "1.0",
595
1413
  "attributes": {
596
1414
  "valid": {
597
- "from": "2013-07-04T04:00:44+00:00",
598
- "to": "3013-07-04T04:00:44+00:00"
1415
+ "from": "2013-10-12T02:22:05+00:00",
1416
+ "to": "3013-10-12T02:22:05+00:00"
599
1417
  },
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"
1418
+ "created": "2013-10-12T02:22:05+00:00",
1419
+ "modified": "2013-10-18T02:52:06+00:00",
1420
+ "guid": "3268cca2-8879-40e4-8d11-f1bacbda2866",
1421
+ "tags": [
1422
+ "pri",
1423
+ "theworld"
1424
+ ],
1425
+ "title": "Pri - The World - Sample Document 1383125008",
1426
+ "published": "2013-10-12T02:22:05+00:00"
611
1427
  },
612
1428
  "links": {
613
1429
  "profile": [
614
1430
  {
615
- "href": "https://api-sandbox.pmp.io/profiles/user"
1431
+ "href": "https://api-sandbox.pmp.io/profiles/story"
1432
+ }
1433
+ ],
1434
+ "collection": [
1435
+ {
1436
+ "href": "https://api-sandbox.pmp.io/docs/03796e02-48f4-40aa-b457-2ffeba3d8d39"
1437
+ },
1438
+ {
1439
+ "href": "https://api-sandbox.pmp.io/docs/ea18ee8a-887a-42b5-8579-113b3a53b039"
616
1440
  }
617
1441
  ],
618
1442
  "creator": [
619
1443
  {
620
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
1444
+ "href": "https://api-sandbox.pmp.io/docs/7a865268-c9de-4b27-a3c1-983adad90921"
621
1445
  }
622
1446
  ],
623
1447
  "navigation": [
624
1448
  {
625
- "href": "https://api-sandbox.pmp.io/docs?guid=af676335-21df-4486-ab43-e88c1b48f026",
1449
+ "href": "https://api-sandbox.pmp.io/docs?guid=3268cca2-8879-40e4-8d11-f1bacbda2866",
626
1450
  "rels": [
627
1451
  "urn:pmp:navigation:self"
628
1452
  ]
@@ -630,8 +1454,82 @@
630
1454
  ],
631
1455
  "edit": [
632
1456
  {
633
- "href": "https://publish-sandbox.pmp.io/docs",
634
- "method": "PUT"
1457
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
1458
+ "title": "Document Save",
1459
+ "rels": [
1460
+ "urn:pmp:form:documentsave"
1461
+ ],
1462
+ "href-vars": {
1463
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1464
+ },
1465
+ "hints": {
1466
+ "formats": [
1467
+ "application/vnd.pmp.collection.doc+json"
1468
+ ],
1469
+ "allow": [
1470
+ "PUT",
1471
+ "DELETE"
1472
+ ],
1473
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type"
1474
+ }
1475
+ },
1476
+ {
1477
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
1478
+ "title": "Profile Save",
1479
+ "rels": [
1480
+ "urn:pmp:form:profilesave"
1481
+ ],
1482
+ "href-vars": {
1483
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1484
+ },
1485
+ "hints": {
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"
1501
+ ],
1502
+ "href-vars": {
1503
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
1504
+ },
1505
+ "hints": {
1506
+ "formats": [
1507
+ "application/schema+json"
1508
+ ],
1509
+ "allow": [
1510
+ "PUT",
1511
+ "DELETE"
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"
1521
+ ],
1522
+ "href-vars": {
1523
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
1524
+ },
1525
+ "hints": {
1526
+ "allow": [
1527
+ "POST"
1528
+ ],
1529
+ "accept-post": [
1530
+ "multipart/form-data"
1531
+ ]
1532
+ }
635
1533
  }
636
1534
  ]
637
1535
  }