pmp 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pmp/collection_document.rb +16 -7
- data/lib/pmp/configuration.rb +10 -7
- data/lib/pmp/credential.rb +1 -1
- data/lib/pmp/token.rb +5 -1
- data/lib/pmp/version.rb +1 -1
- data/spec/client_spec.rb +7 -16
- data/spec/collection_document_spec.rb +20 -47
- data/spec/credential_spec.rb +9 -13
- data/spec/fixtures/collection_query.json +926 -1091
- data/spec/fixtures/collection_root.json +334 -360
- data/spec/link_spec.rb +2 -2
- data/spec/parser_spec.rb +1 -1
- data/spec/token_spec.rb +12 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 435d21b80d21271f153dfb647bd0182f1be19cbe
|
4
|
+
data.tar.gz: 3ef0cd76f9847636bd9d8b12c1bfdf0fe73bec89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9f069cebc602f802afa5a73937d4dde4692bf94123c1fdcd8451af77b708b77e76c563c0680475e64f5b2d233d5198ff7edbac20a752b5ec3034c4a2c146a57
|
7
|
+
data.tar.gz: 38b140b43301dc5f163707691a9c2ac9b5559290888c77a7eb7c5ebd25c06947f0dcb1569009d65a4c09fccfa79034c26f02dbb57de826247f217f3732ff95ef
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'ostruct'
|
2
|
+
require 'uri'
|
2
3
|
|
3
4
|
module PMP
|
4
5
|
|
@@ -46,10 +47,10 @@ module PMP
|
|
46
47
|
self.root = current_options.delete(:root)
|
47
48
|
self.href = current_options.delete(:href)
|
48
49
|
self.version = current_options.delete(:version) || '1.0'
|
49
|
-
|
50
|
+
|
50
51
|
self.attributes = OpenStruct.new
|
51
52
|
self.links = PMP::Links.new(self)
|
52
|
-
|
53
|
+
|
53
54
|
# if there is a doc to be had, pull it out
|
54
55
|
self.response = current_options.delete(:response)
|
55
56
|
self.original = current_options.delete(:document)
|
@@ -87,7 +88,7 @@ module PMP
|
|
87
88
|
|
88
89
|
def save
|
89
90
|
set_guid_if_blank
|
90
|
-
url =
|
91
|
+
url = save_link.where(guid: self.guid).url
|
91
92
|
self.response = request(:put, url, self)
|
92
93
|
self.href = response.body['url']
|
93
94
|
end
|
@@ -95,13 +96,19 @@ module PMP
|
|
95
96
|
def delete
|
96
97
|
raise 'No guid specified to delete' if self.guid.blank?
|
97
98
|
|
98
|
-
url =
|
99
|
+
url = delete_link.where(guid: self.guid).url
|
99
100
|
request(:delete, url)
|
100
101
|
end
|
101
102
|
|
102
|
-
def
|
103
|
+
def save_link
|
103
104
|
link = root_document.edit['urn:collectiondoc:form:documentsave']
|
104
|
-
raise
|
105
|
+
raise 'Save link not found' unless link
|
106
|
+
link
|
107
|
+
end
|
108
|
+
|
109
|
+
def delete_link
|
110
|
+
link = root_document.edit['urn:collectiondoc:form:documentdelete']
|
111
|
+
raise 'Delete link not found' unless link
|
105
112
|
link
|
106
113
|
end
|
107
114
|
|
@@ -132,7 +139,9 @@ module PMP
|
|
132
139
|
# url includes any params - full url
|
133
140
|
def request(method, url, body=nil) # :nodoc:
|
134
141
|
|
135
|
-
|
142
|
+
unless ['/', ''].include?(URI::parse(url).path)
|
143
|
+
setup_oauth_token
|
144
|
+
end
|
136
145
|
|
137
146
|
begin
|
138
147
|
raw = connection(current_options.merge({url: url})).send(method) do |request|
|
data/lib/pmp/configuration.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
require 'active_support/concern'
|
4
4
|
|
5
5
|
module PMP
|
6
|
-
module Configuration
|
6
|
+
module Configuration
|
7
7
|
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
@@ -23,18 +23,18 @@ module PMP
|
|
23
23
|
# this you need to get from pmp, not covered by this
|
24
24
|
DEFAULT_CLIENT_ID = nil
|
25
25
|
DEFAULT_CLIENT_SECRET = nil
|
26
|
-
|
26
|
+
|
27
27
|
# Adapters are whatever Faraday supports - I like excon alot, so I'm defaulting it
|
28
28
|
DEFAULT_ADAPTER = :excon
|
29
|
-
|
29
|
+
|
30
30
|
# The api endpoint for YQL
|
31
31
|
DEFAULT_ENDPOINT = 'https://api.pmp.io/'.freeze
|
32
|
-
|
32
|
+
|
33
33
|
# The value sent in the http header for 'User-Agent' if none is set
|
34
34
|
DEFAULT_USER_AGENT = "PMP Ruby Gem #{PMP::VERSION}".freeze
|
35
35
|
|
36
36
|
DEFAULT_TOKEN_TYPE = 'Bearer'
|
37
|
-
|
37
|
+
|
38
38
|
# debug is defaulted to the ENV['DEBUG'], see below
|
39
39
|
|
40
40
|
attr_accessor *VALID_OPTIONS_KEYS
|
@@ -60,6 +60,9 @@ module PMP
|
|
60
60
|
|
61
61
|
def apply_configuration(opts={})
|
62
62
|
options = PMP.options.merge(opts)
|
63
|
+
if options[:endpoint] && options[:endpoint][-1] != '/'
|
64
|
+
options[:endpoint] += '/'
|
65
|
+
end
|
63
66
|
self.current_options = options
|
64
67
|
VALID_OPTIONS_KEYS.each do |key|
|
65
68
|
send("#{key}=", options[key])
|
@@ -92,9 +95,9 @@ module PMP
|
|
92
95
|
|
93
96
|
def keys
|
94
97
|
VALID_OPTIONS_KEYS
|
95
|
-
end
|
98
|
+
end
|
96
99
|
|
97
100
|
end
|
98
101
|
|
99
102
|
end
|
100
|
-
end
|
103
|
+
end
|
data/lib/pmp/credential.rb
CHANGED
data/lib/pmp/token.rb
CHANGED
@@ -14,7 +14,7 @@ module PMP
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def token_url
|
17
|
-
|
17
|
+
root_document.auth['urn:collectiondoc:form:issuetoken'].url
|
18
18
|
end
|
19
19
|
|
20
20
|
def get_token
|
@@ -50,5 +50,9 @@ module PMP
|
|
50
50
|
options.select{|k,v| PMP::Connection::ALLOWED_CONNECTION_OPTIONS.include?(k.to_sym)}
|
51
51
|
end
|
52
52
|
|
53
|
+
def root_document
|
54
|
+
@root ||= PMP::CollectionDocument.new(current_options.merge(href: endpoint))
|
55
|
+
end
|
56
|
+
|
53
57
|
end
|
54
58
|
end
|
data/lib/pmp/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -4,9 +4,10 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
4
4
|
|
5
5
|
describe PMP::Client do
|
6
6
|
|
7
|
-
before
|
7
|
+
before do
|
8
8
|
@pmp = PMP::Client.new(oauth_token: 'thisisatestvalueonly')
|
9
|
-
|
9
|
+
@root_doc = json_file(:collection_root)
|
10
|
+
end
|
10
11
|
|
11
12
|
it "make with options and pass along" do
|
12
13
|
pmp = PMP::Client.new(oauth_token: 'thisisatestvalueonly')
|
@@ -21,23 +22,13 @@ describe PMP::Client do
|
|
21
22
|
end
|
22
23
|
|
23
24
|
it "root doc can be loaded" do
|
24
|
-
|
25
|
-
|
26
|
-
stub_request(:get, "https://api.pmp.io/").
|
27
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
28
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
29
|
-
|
25
|
+
stub_request(:get, 'https://api.pmp.io').to_return(:status => 200, :body => @root_doc)
|
30
26
|
@root = @pmp.root
|
31
27
|
@root.creator.first.must_be_instance_of PMP::Link
|
32
28
|
end
|
33
29
|
|
34
30
|
it "calls the root doc when client does not have method" do
|
35
|
-
|
36
|
-
|
37
|
-
stub_request(:get, "https://api.pmp.io/").
|
38
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
39
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
40
|
-
|
31
|
+
stub_request(:get, 'https://api.pmp.io').to_return(:status => 200, :body => @root_doc)
|
41
32
|
@pmp.creator.first.must_be_instance_of PMP::Link
|
42
33
|
end
|
43
34
|
|
@@ -58,10 +49,10 @@ describe PMP::Client do
|
|
58
49
|
|
59
50
|
stub_request(:post, "https://api.pmp.io/auth/access_token").
|
60
51
|
with(:body => {"grant_type"=>"client_credentials"},
|
61
|
-
:headers => {'Accept'=>'application/json', 'Authorization'=>'Basic dGhpc2lzbm90YS1yZWFsLWNsaWVudC1pZC1zb3Zlcnlzb3JyeTp0aGlzaXNub3RhcmVhbHNlY3JldGVpdGhlcg==', 'Content-Type'=>'application/x-www-form-urlencoded'
|
52
|
+
:headers => {'Accept'=>'application/json', 'Authorization'=>'Basic dGhpc2lzbm90YS1yZWFsLWNsaWVudC1pZC1zb3Zlcnlzb3JyeTp0aGlzaXNub3RhcmVhbHNlY3JldGVpdGhlcg==', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
62
53
|
to_return(:status => 200, :body => response_body, :headers => {'Content-Type' => 'application/json; charset=utf-8'})
|
63
54
|
|
64
|
-
|
55
|
+
stub_request(:get, 'https://api.pmp.io').to_return(:status => 200, :body => @root_doc)
|
65
56
|
|
66
57
|
client_id = "thisisnota-real-client-id-soverysorry"
|
67
58
|
client_secret = "thisisnotarealsecreteither"
|
@@ -7,6 +7,12 @@ require 'webmock/minitest'
|
|
7
7
|
|
8
8
|
describe PMP::CollectionDocument do
|
9
9
|
|
10
|
+
# stub getting the root doc
|
11
|
+
before do
|
12
|
+
root_doc = json_file(:collection_root)
|
13
|
+
stub_request(:get, 'https://api.pmp.io').to_return(:status => 200, :body => root_doc)
|
14
|
+
end
|
15
|
+
|
10
16
|
describe 'make' do
|
11
17
|
|
12
18
|
before(:each) {
|
@@ -87,12 +93,6 @@ describe PMP::CollectionDocument do
|
|
87
93
|
describe "loading" do
|
88
94
|
|
89
95
|
before(:each) {
|
90
|
-
root_doc = json_file(:collection_root)
|
91
|
-
|
92
|
-
stub_request(:get, "https://api.pmp.io/").
|
93
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
94
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
95
|
-
|
96
96
|
@doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken', href: "https://api.pmp.io/", client_id: "fake", client_secret: "fake")
|
97
97
|
}
|
98
98
|
|
@@ -148,12 +148,6 @@ describe PMP::CollectionDocument do
|
|
148
148
|
describe "queries" do
|
149
149
|
|
150
150
|
before(:each) {
|
151
|
-
root_doc = json_file(:collection_root)
|
152
|
-
|
153
|
-
stub_request(:get, "https://api.pmp.io/").
|
154
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
155
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
156
|
-
|
157
151
|
@doc = PMP::CollectionDocument.new(oauth_token: 'thisisatesttoken', href: "https://api.pmp.io/")
|
158
152
|
}
|
159
153
|
|
@@ -169,8 +163,8 @@ describe PMP::CollectionDocument do
|
|
169
163
|
|
170
164
|
it "should handle 404 results on a search" do
|
171
165
|
|
172
|
-
stub_request(:get, "https://api
|
173
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.collection.doc+json'
|
166
|
+
stub_request(:get, "https://api.pmp.io/docs").
|
167
|
+
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatesttoken', 'Content-Type'=>'application/vnd.collection.doc+json'}).
|
174
168
|
to_return(:status=>404, :body=>"Not Found", :remote_ip=>"107.20.158.113", :headers=>{"Access-Control-Allow-Headers"=>"origin, x-http-method-override, accept, content-type, authorization, x-pingother", "Access-Control-Allow-Methods"=>"GET,OPTIONS,HEAD,PUT,POST,DELETE,PATCH", "Access-Control-Allow-Origin"=>"*", "Content-Type"=>"application/vnd.collection.doc+json", "Date"=>"Thu, 24 Oct 2013 17:20:04 GMT", "Vary"=>"Accept-Encoding", "X-Powered-By"=>"Express", "X-Response-Time"=>"18ms", "Content-Length"=>"9", "Connection"=>"keep-alive"})
|
175
169
|
|
176
170
|
@doc.query["urn:collectiondoc:query:docs"].items.must_equal []
|
@@ -196,15 +190,9 @@ describe PMP::CollectionDocument do
|
|
196
190
|
|
197
191
|
it "can save a record" do
|
198
192
|
|
199
|
-
# stub getting the root doc
|
200
|
-
root_doc = json_file(:collection_root)
|
201
|
-
stub_request(:get, "https://api.pmp.io/").
|
202
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
203
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
204
|
-
|
205
193
|
# stub saving the new doc
|
206
|
-
stub_request(:put, "https://publish
|
207
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json'
|
194
|
+
stub_request(:put, "https://publish.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
195
|
+
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json'}).
|
208
196
|
to_return(:status => 404, :body => '{"error":"FAIL"}')
|
209
197
|
|
210
198
|
doc = PMP::CollectionDocument.new(oauth_token: 'thisisatestvalueonly')
|
@@ -215,34 +203,25 @@ describe PMP::CollectionDocument do
|
|
215
203
|
|
216
204
|
it "should handle 404 results on a save" do
|
217
205
|
|
218
|
-
# stub getting the root doc
|
219
|
-
root_doc = json_file(:collection_root)
|
220
|
-
|
221
|
-
stub_request(:get, "https://api.pmp.io/").
|
222
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
223
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
224
|
-
|
225
206
|
doc = PMP::CollectionDocument.new(oauth_token: 'thisisatestvalueonly')
|
226
207
|
|
227
|
-
|
228
|
-
stub_request(:put, "https://publish-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
208
|
+
stub_request(:put, "https://publish.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
229
209
|
with(:body => "{\"links\":{},\"attributes\":{\"guid\":\"c144e4df-021b-41e6-9cf3-42ac49bcbd42\",\"title\":\"testing\"}}",
|
230
|
-
:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatestvalueonly', 'Content-Type'=>'application/vnd.collection.doc+json'
|
231
|
-
to_return(:status => 200, :body => '{"url":"https://api
|
210
|
+
:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatestvalueonly', 'Content-Type'=>'application/vnd.collection.doc+json'}).
|
211
|
+
to_return(:status => 200, :body => '{"url":"https://api.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42"}')
|
232
212
|
|
233
213
|
doc.guid = "c144e4df-021b-41e6-9cf3-42ac49bcbd42"
|
234
214
|
doc.title = "testing"
|
235
215
|
doc.wont_be :loaded
|
236
216
|
doc.save
|
237
|
-
|
238
|
-
doc.must_be :loaded
|
239
|
-
doc.href.must_equal "https://api-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42"
|
240
217
|
|
218
|
+
doc.must_be :loaded
|
219
|
+
doc.href.must_equal "https://api.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42"
|
241
220
|
|
242
|
-
stub_request(:put, "https://publish
|
221
|
+
stub_request(:put, "https://publish.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
243
222
|
with(:body => "{\"links\":{},\"attributes\":{\"guid\":\"c144e4df-021b-41e6-9cf3-42ac49bcbd42\",\"title\":\"testing an update\"}}",
|
244
|
-
:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatestvalueonly', 'Content-Type'=>'application/vnd.collection.doc+json'
|
245
|
-
to_return(:status => 200, :body => '{"url":"https://api
|
223
|
+
:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Authorization'=>'Bearer thisisatestvalueonly', 'Content-Type'=>'application/vnd.collection.doc+json'}).
|
224
|
+
to_return(:status => 200, :body => '{"url":"https://api.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42"}')
|
246
225
|
|
247
226
|
doc.title.must_equal "testing"
|
248
227
|
doc.title = "testing an update"
|
@@ -252,14 +231,8 @@ describe PMP::CollectionDocument do
|
|
252
231
|
|
253
232
|
it "can delete a record" do
|
254
233
|
|
255
|
-
|
256
|
-
|
257
|
-
stub_request(:get, "https://api.pmp.io/").
|
258
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'api.pmp.io:443'}).
|
259
|
-
to_return(:status => 200, :body => root_doc, :headers => {})
|
260
|
-
|
261
|
-
stub_request(:delete, "https://publish-sandbox.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
262
|
-
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json', 'Host'=>'publish-sandbox.pmp.io:443'}).
|
234
|
+
stub_request(:delete, "https://publish.pmp.io/docs/c144e4df-021b-41e6-9cf3-42ac49bcbd42").
|
235
|
+
with(:headers => {'Accept'=>'application/vnd.collection.doc+json', 'Content-Type'=>'application/vnd.collection.doc+json'}).
|
263
236
|
to_return(:status => 204, :body => "", :headers => {})
|
264
237
|
|
265
238
|
doc = PMP::CollectionDocument.new(oauth_token: 'thisisatestvalueonly')
|
data/spec/credential_spec.rb
CHANGED
@@ -8,9 +8,11 @@ require 'webmock/minitest'
|
|
8
8
|
|
9
9
|
describe PMP::Credential do
|
10
10
|
|
11
|
-
before
|
12
|
-
|
13
|
-
|
11
|
+
before do
|
12
|
+
root_doc = json_file(:collection_root)
|
13
|
+
stub_request(:get, 'https://api.pmp.io').to_return(:status => 200, :body => root_doc)
|
14
|
+
@credential = PMP::Credential.new(user: "test", password: "password", endpoint: "https://api.pmp.io/")
|
15
|
+
end
|
14
16
|
|
15
17
|
it "has the user and password in the config" do
|
16
18
|
@credential.user.must_equal 'test'
|
@@ -23,12 +25,6 @@ describe PMP::Credential do
|
|
23
25
|
end
|
24
26
|
|
25
27
|
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
|
-
|
32
28
|
response_body = {
|
33
29
|
client_id: "thisisnota-real-client-id-soverysorry",
|
34
30
|
client_secret: "thisisnotarealsecreteither",
|
@@ -36,9 +32,9 @@ describe PMP::Credential do
|
|
36
32
|
scope: "write"
|
37
33
|
}.to_json
|
38
34
|
|
39
|
-
stub_request(:post, "https://publish
|
35
|
+
stub_request(:post, "https://publish.pmp.io/auth/credentials").
|
40
36
|
with(:body => {"label"=>"what", "scope"=>"read", "token_expires_in"=>"2592000"},
|
41
|
-
:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>'application/x-www-form-urlencoded'
|
37
|
+
:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>'application/x-www-form-urlencoded'}).
|
42
38
|
to_return(:status => 200, :body => response_body, :headers => {})
|
43
39
|
|
44
40
|
new_creds = @credential.create(label: 'what')
|
@@ -66,8 +62,8 @@ describe PMP::Credential do
|
|
66
62
|
]
|
67
63
|
}.to_json
|
68
64
|
|
69
|
-
stub_request(:get, "https://api
|
70
|
-
with(:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>''
|
65
|
+
stub_request(:get, "https://api.pmp.io/auth/credentials").
|
66
|
+
with(:headers => {'Accept'=>'*/*', 'Authorization'=>'Basic dGVzdDpwYXNzd29yZA==', 'Content-Type'=>''}).
|
71
67
|
to_return(:status => 200, :body => response_body, :headers => {})
|
72
68
|
|
73
69
|
all_creds = @credential.list
|
@@ -1,1118 +1,953 @@
|
|
1
1
|
{
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
2
|
+
"version": "1.0",
|
3
|
+
"href": "https://api-sandbox.pmp.io/docs",
|
4
|
+
"links": {
|
5
|
+
"item": [
|
6
|
+
{
|
7
|
+
"href": "https://api-sandbox.pmp.io/docs/c0ea1434-7201-4407-b447-8c4987f1fd0c"
|
8
|
+
},
|
9
|
+
{
|
10
|
+
"href": "https://api-sandbox.pmp.io/docs/c48e44a8-e844-4ec7-884d-83a597a21487"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"href": "https://api-sandbox.pmp.io/docs/32063759-e8dd-4c11-9c02-f05df9654990"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"href": "https://api-sandbox.pmp.io/docs/0390510e-f1cb-4cef-b362-1e916d4c92f1"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"href": "https://api-sandbox.pmp.io/docs/f237f87d-1f40-4178-9eba-b068b5dc6f7b"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"href": "https://api-sandbox.pmp.io/docs/a8fd2d1c-d192-4460-b71e-dc454af94462"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"href": "https://api-sandbox.pmp.io/docs/29b68f08-f0a7-4425-b70d-570fed4012c7"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"href": "https://api-sandbox.pmp.io/docs/0d3f7687-00c4-4df0-bcbb-bfd7c8dbc1c6"
|
35
|
+
}
|
36
|
+
],
|
37
|
+
"navigation": [
|
38
|
+
{
|
39
|
+
"href": "https://api-sandbox.pmp.io/docs",
|
40
|
+
"rels": [
|
41
|
+
"self"
|
36
42
|
],
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
"pagenum": 1
|
46
|
-
},
|
47
|
-
{
|
48
|
-
"href": "https://api-sandbox.pmp.io/docs?offset=10",
|
49
|
-
"rels": [
|
50
|
-
"next"
|
51
|
-
],
|
52
|
-
"pagenum": 2
|
53
|
-
},
|
54
|
-
{
|
55
|
-
"href": "https://api-sandbox.pmp.io/docs?",
|
56
|
-
"rels": [
|
57
|
-
"first"
|
58
|
-
],
|
59
|
-
"pagenum": 1
|
60
|
-
},
|
61
|
-
{
|
62
|
-
"href": "https://api-sandbox.pmp.io/docs?offset=66380",
|
63
|
-
"rels": [
|
64
|
-
"last"
|
65
|
-
],
|
66
|
-
"pagenum": 6638
|
67
|
-
}
|
43
|
+
"totalitems": 39219,
|
44
|
+
"totalpages": 3922,
|
45
|
+
"pagenum": 1
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"href": "https://api-sandbox.pmp.io/docs?offset=10",
|
49
|
+
"rels": [
|
50
|
+
"next"
|
68
51
|
],
|
69
|
-
"
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
],
|
76
|
-
"href-vars": {
|
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"
|
80
|
-
},
|
81
|
-
"hints": {
|
82
|
-
"allow": [
|
83
|
-
"GET"
|
84
|
-
]
|
85
|
-
}
|
86
|
-
},
|
87
|
-
{
|
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",
|
90
|
-
"rels": [
|
91
|
-
"urn:collectiondoc:query:docs"
|
92
|
-
],
|
93
|
-
"href-vars": {
|
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"
|
110
|
-
},
|
111
|
-
"hints": {
|
112
|
-
"allow": [
|
113
|
-
"GET"
|
114
|
-
]
|
115
|
-
}
|
116
|
-
},
|
117
|
-
{
|
118
|
-
"href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
|
119
|
-
"title": "Access profiles",
|
120
|
-
"rels": [
|
121
|
-
"urn:collectiondoc:hreftpl:profiles"
|
122
|
-
],
|
123
|
-
"href-vars": {
|
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"
|
149
|
-
},
|
150
|
-
"hints": {
|
151
|
-
"allow": [
|
152
|
-
"GET"
|
153
|
-
]
|
154
|
-
}
|
155
|
-
},
|
156
|
-
{
|
157
|
-
"href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
|
158
|
-
"title": "Access schemas",
|
159
|
-
"rels": [
|
160
|
-
"urn:collectiondoc:hreftpl:schemas"
|
161
|
-
],
|
162
|
-
"href-vars": {
|
163
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
164
|
-
},
|
165
|
-
"hints": {
|
166
|
-
"allow": [
|
167
|
-
"GET"
|
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"
|
188
|
-
},
|
189
|
-
"hints": {
|
190
|
-
"allow": [
|
191
|
-
"GET"
|
192
|
-
]
|
193
|
-
}
|
194
|
-
},
|
195
|
-
{
|
196
|
-
"href-template": "https://api-sandbox.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
197
|
-
"title": "Query for users",
|
198
|
-
"rels": [
|
199
|
-
"urn:collectiondoc:query:users"
|
200
|
-
],
|
201
|
-
"href-vars": {
|
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"
|
212
|
-
},
|
213
|
-
"hints": {
|
214
|
-
"allow": [
|
215
|
-
"GET"
|
216
|
-
]
|
217
|
-
}
|
218
|
-
},
|
219
|
-
{
|
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",
|
222
|
-
"rels": [
|
223
|
-
"urn:collectiondoc:query:groups"
|
224
|
-
],
|
225
|
-
"href-vars": {
|
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"
|
237
|
-
},
|
238
|
-
"hints": {
|
239
|
-
"allow": [
|
240
|
-
"GET"
|
241
|
-
]
|
242
|
-
}
|
243
|
-
},
|
244
|
-
{
|
245
|
-
"href": "https://api-sandbox.pmp.io/guids",
|
246
|
-
"title": "Generate guids",
|
247
|
-
"rels": [
|
248
|
-
"urn:collectiondoc:query:guids"
|
249
|
-
],
|
250
|
-
"hints": {
|
251
|
-
"allow": [
|
252
|
-
"POST"
|
253
|
-
],
|
254
|
-
"accept-post": [
|
255
|
-
"application/x-www-form-urlencoded"
|
256
|
-
]
|
257
|
-
},
|
258
|
-
"type": "application/json"
|
259
|
-
}
|
52
|
+
"pagenum": 2
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"href": "https://api-sandbox.pmp.io/docs?",
|
56
|
+
"rels": [
|
57
|
+
"first"
|
260
58
|
],
|
261
|
-
"
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
],
|
268
|
-
"href-vars": {
|
269
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
270
|
-
},
|
271
|
-
"hints": {
|
272
|
-
"formats": [
|
273
|
-
"application/vnd.collection.doc+json"
|
274
|
-
],
|
275
|
-
"allow": [
|
276
|
-
"PUT",
|
277
|
-
"DELETE"
|
278
|
-
],
|
279
|
-
"docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
|
280
|
-
}
|
281
|
-
},
|
282
|
-
{
|
283
|
-
"href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
|
284
|
-
"title": "Profile Save",
|
285
|
-
"rels": [
|
286
|
-
"urn:collectiondoc:form:profilesave"
|
287
|
-
],
|
288
|
-
"href-vars": {
|
289
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
290
|
-
},
|
291
|
-
"hints": {
|
292
|
-
"formats": [
|
293
|
-
"application/vnd.collection.doc+json"
|
294
|
-
],
|
295
|
-
"allow": [
|
296
|
-
"PUT",
|
297
|
-
"DELETE"
|
298
|
-
],
|
299
|
-
"docs": "http://docs.pmp.io/wiki/Profile-profile"
|
300
|
-
}
|
301
|
-
},
|
302
|
-
{
|
303
|
-
"href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
|
304
|
-
"title": "Schema Save",
|
305
|
-
"rels": [
|
306
|
-
"urn:collectiondoc:form:schemasave"
|
307
|
-
],
|
308
|
-
"href-vars": {
|
309
|
-
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
310
|
-
},
|
311
|
-
"hints": {
|
312
|
-
"formats": [
|
313
|
-
"application/vnd.collection.doc+json"
|
314
|
-
],
|
315
|
-
"allow": [
|
316
|
-
"PUT",
|
317
|
-
"DELETE"
|
318
|
-
],
|
319
|
-
"docs": "http://docs.pmp.io/wiki/Schema-profile"
|
320
|
-
}
|
321
|
-
},
|
322
|
-
{
|
323
|
-
"href": "https://publish-sandbox.pmp.io/files",
|
324
|
-
"title": "Upload a rich media file",
|
325
|
-
"rels": [
|
326
|
-
"urn:collectiondoc:form:mediaupload"
|
327
|
-
],
|
328
|
-
"href-vars": {
|
329
|
-
"submission": "http://docs.pmp.io/wiki/Media-File-Upload"
|
330
|
-
},
|
331
|
-
"hints": {
|
332
|
-
"allow": [
|
333
|
-
"POST"
|
334
|
-
],
|
335
|
-
"accept-post": [
|
336
|
-
"multipart/form-data"
|
337
|
-
]
|
338
|
-
}
|
339
|
-
}
|
59
|
+
"pagenum": 1
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"href": "https://api-sandbox.pmp.io/docs?offset=39210",
|
63
|
+
"rels": [
|
64
|
+
"last"
|
340
65
|
],
|
341
|
-
"
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
66
|
+
"pagenum": 3922
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"query": [
|
70
|
+
{
|
71
|
+
"href-template": "https://api-sandbox.pmp.io/docs/{guid}{?limit,offset}",
|
72
|
+
"title": "Access documents",
|
73
|
+
"rels": [
|
74
|
+
"urn:collectiondoc:hreftpl:docs"
|
75
|
+
],
|
76
|
+
"href-vars": {
|
77
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
78
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
79
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
80
|
+
},
|
81
|
+
"hints": {
|
82
|
+
"allow": [
|
83
|
+
"GET"
|
84
|
+
]
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"href-template": "https://api-sandbox.pmp.io/profiles/{guid}",
|
89
|
+
"title": "Access profiles",
|
90
|
+
"rels": [
|
91
|
+
"urn:collectiondoc:hreftpl:profiles"
|
92
|
+
],
|
93
|
+
"href-vars": {
|
94
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
95
|
+
},
|
96
|
+
"hints": {
|
97
|
+
"allow": [
|
98
|
+
"GET"
|
99
|
+
]
|
100
|
+
}
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"href-template": "https://api-sandbox.pmp.io/schemas/{guid}",
|
104
|
+
"title": "Access schemas",
|
105
|
+
"rels": [
|
106
|
+
"urn:collectiondoc:hreftpl:schemas"
|
107
|
+
],
|
108
|
+
"href-vars": {
|
109
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
110
|
+
},
|
111
|
+
"hints": {
|
112
|
+
"allow": [
|
113
|
+
"GET"
|
114
|
+
]
|
115
|
+
}
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"href-template": "https://api-sandbox.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
|
119
|
+
"title": "Query for documents",
|
120
|
+
"rels": [
|
121
|
+
"urn:collectiondoc:query:docs"
|
122
|
+
],
|
123
|
+
"href-vars": {
|
124
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
125
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
126
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
127
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
128
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
129
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
130
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
131
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
132
|
+
"language": "http://docs.pmp.io/wiki/Querying-the-API#language",
|
133
|
+
"profile": "http://docs.pmp.io/wiki/Querying-the-API#profile",
|
134
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
135
|
+
"has": "http://docs.pmp.io/wiki/Querying-the-API#has",
|
136
|
+
"distributor": "http://docs.pmp.io/wiki/Querying-the-API#distributor",
|
137
|
+
"distributorgroup": "http://docs.pmp.io/wiki/Querying-the-API#distributorgroup",
|
138
|
+
"author": "http://docs.pmp.io/wiki/Querying-the-API#author",
|
139
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
140
|
+
},
|
141
|
+
"hints": {
|
142
|
+
"allow": [
|
143
|
+
"GET"
|
144
|
+
]
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"href-template": "https://api-sandbox.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
149
|
+
"title": "Query for profiles",
|
150
|
+
"rels": [
|
151
|
+
"urn:collectiondoc:query:profiles"
|
152
|
+
],
|
153
|
+
"href-vars": {
|
154
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
155
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
156
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
157
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
158
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
159
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
160
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
161
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
162
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
163
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
164
|
+
},
|
165
|
+
"hints": {
|
166
|
+
"allow": [
|
167
|
+
"GET"
|
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/Querying-the-API#guid",
|
179
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
180
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
181
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
182
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
183
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
184
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
185
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
186
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
187
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
188
|
+
},
|
189
|
+
"hints": {
|
190
|
+
"allow": [
|
191
|
+
"GET"
|
192
|
+
]
|
193
|
+
}
|
194
|
+
},
|
195
|
+
{
|
196
|
+
"href-template": "https://api-sandbox.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
|
197
|
+
"title": "Query for users",
|
198
|
+
"rels": [
|
199
|
+
"urn:collectiondoc:query:users"
|
200
|
+
],
|
201
|
+
"href-vars": {
|
202
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
203
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
204
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
205
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
206
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
207
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
208
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
209
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
210
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
211
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
212
|
+
},
|
213
|
+
"hints": {
|
214
|
+
"allow": [
|
215
|
+
"GET"
|
216
|
+
]
|
217
|
+
}
|
218
|
+
},
|
219
|
+
{
|
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",
|
222
|
+
"rels": [
|
223
|
+
"urn:collectiondoc:query:groups"
|
224
|
+
],
|
225
|
+
"href-vars": {
|
226
|
+
"guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
|
227
|
+
"limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
|
228
|
+
"offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
|
229
|
+
"searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
|
230
|
+
"startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
|
231
|
+
"enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
|
232
|
+
"writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
|
233
|
+
"tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
|
234
|
+
"collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
|
235
|
+
"has": "http://docs.pmp.io/wiki/Querying-the-API#has",
|
236
|
+
"text": "http://docs.pmp.io/wiki/Querying-the-API#text"
|
237
|
+
},
|
238
|
+
"hints": {
|
239
|
+
"allow": [
|
240
|
+
"GET"
|
241
|
+
]
|
242
|
+
}
|
243
|
+
}
|
244
|
+
],
|
245
|
+
"edit": [
|
246
|
+
{
|
247
|
+
"href-template": "https://publish-sandbox.pmp.io/docs/{guid}",
|
248
|
+
"title": "Document Save",
|
249
|
+
"rels": [
|
250
|
+
"urn:collectiondoc:form:documentsave"
|
251
|
+
],
|
252
|
+
"href-vars": {
|
253
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
254
|
+
},
|
255
|
+
"hints": {
|
256
|
+
"formats": [
|
257
|
+
"application/vnd.collection.doc+json"
|
258
|
+
],
|
259
|
+
"allow": [
|
260
|
+
"PUT"
|
261
|
+
],
|
262
|
+
"docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
|
263
|
+
}
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"href-template": "https://publish-sandbox.pmp.io/docs/{guid}",
|
267
|
+
"title": "Document Delete",
|
268
|
+
"rels": [
|
269
|
+
"urn:collectiondoc:form:documentdelete"
|
270
|
+
],
|
271
|
+
"href-vars": {
|
272
|
+
"guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
|
273
|
+
},
|
274
|
+
"hints": {
|
275
|
+
"allow": [
|
276
|
+
"DELETE"
|
277
|
+
]
|
278
|
+
}
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"href": "https://publish-sandbox.pmp.io/files",
|
282
|
+
"title": "Upload a rich media file",
|
283
|
+
"rels": [
|
284
|
+
"urn:collectiondoc:form:mediaupload"
|
285
|
+
],
|
286
|
+
"href-vars": {
|
287
|
+
"submission": "http://docs.pmp.io/wiki/Media-File-Upload"
|
288
|
+
},
|
289
|
+
"hints": {
|
290
|
+
"allow": [
|
291
|
+
"POST"
|
292
|
+
],
|
293
|
+
"accept-post": [
|
294
|
+
"multipart/form-data"
|
295
|
+
]
|
296
|
+
}
|
297
|
+
}
|
298
|
+
],
|
299
|
+
"auth": [
|
300
|
+
{
|
301
|
+
"href": "https://api-sandbox.pmp.io/auth/credentials",
|
302
|
+
"title": "List OAuth2 Credentials",
|
303
|
+
"rels": [
|
304
|
+
"urn:collectiondoc:form:listcredentials"
|
305
|
+
],
|
306
|
+
"hints": {
|
307
|
+
"allow": [
|
308
|
+
"GET"
|
309
|
+
],
|
310
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#testing-access"
|
311
|
+
}
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"href": "https://publish-sandbox.pmp.io/auth/credentials",
|
315
|
+
"title": "Create OAuth2 Credentials",
|
316
|
+
"rels": [
|
317
|
+
"urn:collectiondoc:form:createcredentials"
|
318
|
+
],
|
319
|
+
"hints": {
|
320
|
+
"allow": [
|
321
|
+
"POST"
|
322
|
+
],
|
323
|
+
"accept-post": [
|
324
|
+
"application/x-www-form-urlencoded"
|
325
|
+
],
|
326
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#generating-credentials"
|
327
|
+
}
|
328
|
+
},
|
329
|
+
{
|
330
|
+
"href-template": "https://publish-sandbox.pmp.io/auth/credentials/{client_id}",
|
331
|
+
"title": "Remove OAuth2 Credentials",
|
332
|
+
"rels": [
|
333
|
+
"urn:collectiondoc:form:removecredentials"
|
334
|
+
],
|
335
|
+
"hints": {
|
336
|
+
"allow": [
|
337
|
+
"DELETE"
|
338
|
+
],
|
339
|
+
"docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#removing-a-credential"
|
340
|
+
}
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"href": "https://api-sandbox.pmp.io/auth/access_token",
|
344
|
+
"title": "Issue OAuth2 Token",
|
345
|
+
"rels": [
|
346
|
+
"urn:collectiondoc:form:issuetoken"
|
347
|
+
],
|
348
|
+
"hints": {
|
349
|
+
"allow": [
|
350
|
+
"POST"
|
351
|
+
],
|
352
|
+
"accept-post": [
|
353
|
+
"application/x-www-form-urlencoded"
|
354
|
+
],
|
355
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#token-management"
|
356
|
+
}
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"href": "https://publish-sandbox.pmp.io/auth/access_token",
|
360
|
+
"title": "Revoke OAuth2 Token",
|
361
|
+
"rels": [
|
362
|
+
"urn:collectiondoc:form:revoketoken"
|
363
|
+
],
|
364
|
+
"hints": {
|
365
|
+
"allow": [
|
366
|
+
"DELETE"
|
367
|
+
],
|
368
|
+
"docs": "http://docs.pmp.io/wiki/Authentication-Model#revoke-a-token"
|
369
|
+
}
|
370
|
+
}
|
371
|
+
]
|
372
|
+
},
|
373
|
+
"items": [
|
374
|
+
{
|
375
|
+
"version": "",
|
376
|
+
"href": "https://api-sandbox.pmp.io/docs/c0ea1434-7201-4407-b447-8c4987f1fd0c",
|
377
|
+
"attributes": {
|
378
|
+
"valid": {
|
379
|
+
"from": "2014-08-29T19:35:59+00:00",
|
380
|
+
"to": "3014-08-29T19:35:59+00:00"
|
381
|
+
},
|
382
|
+
"created": "2014-08-29T19:35:59+00:00",
|
383
|
+
"modified": "2014-08-29T19:35:59+00:00",
|
384
|
+
"title": "Thomas Crenshaw",
|
385
|
+
"emails": [
|
386
|
+
{
|
387
|
+
"type": "primary",
|
388
|
+
"email": "thomascrenshaw@gmail.com"
|
389
|
+
}
|
390
|
+
],
|
391
|
+
"guid": "c0ea1434-7201-4407-b447-8c4987f1fd0c",
|
392
|
+
"published": "2014-08-29T19:35:59+00:00"
|
393
|
+
},
|
394
|
+
"links": {
|
395
|
+
"profile": [
|
396
|
+
{
|
397
|
+
"href": "https://api-sandbox.pmp.io/profiles/user",
|
398
|
+
"type": "application/vnd.collection.doc+json"
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"creator": [
|
402
|
+
{
|
403
|
+
"href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
|
404
|
+
}
|
405
|
+
],
|
406
|
+
"item": [],
|
407
|
+
"navigation": [
|
408
|
+
{
|
409
|
+
"href": "https://api-sandbox.pmp.io/docs/c0ea1434-7201-4407-b447-8c4987f1fd0c",
|
410
|
+
"rels": [
|
411
|
+
"self"
|
412
|
+
]
|
413
|
+
}
|
397
414
|
]
|
415
|
+
}
|
398
416
|
},
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
"to": "3014-08-05T13:43:40+00:00"
|
407
|
-
},
|
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"
|
413
|
-
},
|
414
|
-
"links": {
|
415
|
-
"profile": [
|
416
|
-
{
|
417
|
-
"href": "https://api-sandbox.pmp.io/profiles/story"
|
418
|
-
}
|
419
|
-
],
|
420
|
-
"creator": [
|
421
|
-
{
|
422
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
423
|
-
}
|
424
|
-
],
|
425
|
-
"item": [],
|
426
|
-
"navigation": [
|
427
|
-
{
|
428
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=a360c31b-58ec-46a0-8198-a92efa960188",
|
429
|
-
"rels": [
|
430
|
-
"self"
|
431
|
-
]
|
432
|
-
}
|
433
|
-
]
|
434
|
-
}
|
417
|
+
{
|
418
|
+
"version": "1.0",
|
419
|
+
"href": "https://api-sandbox.pmp.io/docs/c48e44a8-e844-4ec7-884d-83a597a21487",
|
420
|
+
"attributes": {
|
421
|
+
"valid": {
|
422
|
+
"from": "2014-08-29T02:58:39+00:00",
|
423
|
+
"to": "3014-08-29T02:58:39+00:00"
|
435
424
|
},
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
"item": [],
|
480
|
-
"navigation": [
|
481
|
-
{
|
482
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=e77aa925-53e0-4cfd-8f16-db6146faef3e",
|
483
|
-
"rels": [
|
484
|
-
"self"
|
485
|
-
]
|
486
|
-
}
|
487
|
-
]
|
488
|
-
}
|
425
|
+
"created": "2014-08-29T02:58:39+00:00",
|
426
|
+
"modified": "2014-08-29T02:58:39+00:00",
|
427
|
+
"hreflang": "en",
|
428
|
+
"guid": "c48e44a8-e844-4ec7-884d-83a597a21487",
|
429
|
+
"title": "Test for S Smith",
|
430
|
+
"published": "2014-08-29T02:58:37+00:00",
|
431
|
+
"byline": "David Moore",
|
432
|
+
"contentencoded": "<p>xyz</p>"
|
433
|
+
},
|
434
|
+
"links": {
|
435
|
+
"profile": [
|
436
|
+
{
|
437
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
438
|
+
}
|
439
|
+
],
|
440
|
+
"alternate": [
|
441
|
+
{
|
442
|
+
"href": "http://cppmp/post/test-s-smith-0"
|
443
|
+
}
|
444
|
+
],
|
445
|
+
"creator": [
|
446
|
+
{
|
447
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
448
|
+
}
|
449
|
+
],
|
450
|
+
"item": [],
|
451
|
+
"navigation": [
|
452
|
+
{
|
453
|
+
"href": "https://api-sandbox.pmp.io/docs/c48e44a8-e844-4ec7-884d-83a597a21487",
|
454
|
+
"rels": [
|
455
|
+
"self"
|
456
|
+
]
|
457
|
+
}
|
458
|
+
]
|
459
|
+
}
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"version": "1.0",
|
463
|
+
"href": "https://api-sandbox.pmp.io/docs/32063759-e8dd-4c11-9c02-f05df9654990",
|
464
|
+
"attributes": {
|
465
|
+
"valid": {
|
466
|
+
"from": "2014-08-29T02:54:31+00:00",
|
467
|
+
"to": "3014-08-29T02:54:31+00:00"
|
489
468
|
},
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
"
|
508
|
-
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
}
|
522
|
-
],
|
523
|
-
"creator": [
|
524
|
-
{
|
525
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
526
|
-
}
|
527
|
-
],
|
528
|
-
"navigation": [
|
529
|
-
{
|
530
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=70809fac-82d1-4864-ae13-b58fb3543a6e",
|
531
|
-
"rels": [
|
532
|
-
"self"
|
533
|
-
],
|
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"
|
548
|
-
},
|
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"
|
556
|
-
},
|
557
|
-
"links": {
|
558
|
-
"profile": [
|
559
|
-
{
|
560
|
-
"href": "https://api-sandbox.pmp.io/profiles/image"
|
561
|
-
}
|
562
|
-
],
|
563
|
-
"alternate": [
|
564
|
-
{
|
565
|
-
"href": "/file/9"
|
566
|
-
}
|
567
|
-
],
|
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
|
-
}
|
578
|
-
],
|
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
|
-
]
|
593
|
-
}
|
594
|
-
}
|
469
|
+
"created": "2014-08-29T02:54:31+00:00",
|
470
|
+
"modified": "2014-08-29T02:54:31+00:00",
|
471
|
+
"hreflang": "en",
|
472
|
+
"guid": "32063759-e8dd-4c11-9c02-f05df9654990",
|
473
|
+
"title": "Test for S Smith",
|
474
|
+
"published": "2014-08-29T02:54:28+00:00",
|
475
|
+
"byline": "David Moore",
|
476
|
+
"contentencoded": "<p>xyz</p>"
|
477
|
+
},
|
478
|
+
"links": {
|
479
|
+
"profile": [
|
480
|
+
{
|
481
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
482
|
+
}
|
483
|
+
],
|
484
|
+
"alternate": [
|
485
|
+
{
|
486
|
+
"href": "http://cppmp/post/test-s-smith"
|
487
|
+
}
|
488
|
+
],
|
489
|
+
"creator": [
|
490
|
+
{
|
491
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
492
|
+
}
|
493
|
+
],
|
494
|
+
"item": [],
|
495
|
+
"navigation": [
|
496
|
+
{
|
497
|
+
"href": "https://api-sandbox.pmp.io/docs/32063759-e8dd-4c11-9c02-f05df9654990",
|
498
|
+
"rels": [
|
499
|
+
"self"
|
595
500
|
]
|
501
|
+
}
|
502
|
+
]
|
503
|
+
}
|
504
|
+
},
|
505
|
+
{
|
506
|
+
"version": "1.0",
|
507
|
+
"href": "https://api-sandbox.pmp.io/docs/0390510e-f1cb-4cef-b362-1e916d4c92f1",
|
508
|
+
"attributes": {
|
509
|
+
"valid": {
|
510
|
+
"from": "2014-08-29T01:33:28+00:00",
|
511
|
+
"to": "3014-08-29T01:33:28+00:00"
|
596
512
|
},
|
597
|
-
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
|
608
|
-
|
609
|
-
|
610
|
-
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
{
|
622
|
-
"href": "/node/1"
|
623
|
-
}
|
624
|
-
],
|
625
|
-
"item": [
|
626
|
-
{
|
627
|
-
"href": "https://api-sandbox.pmp.io/docs/e77aa925-53e0-4cfd-8f16-db6146faef3e"
|
628
|
-
}
|
629
|
-
],
|
630
|
-
"creator": [
|
631
|
-
{
|
632
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
633
|
-
}
|
634
|
-
],
|
635
|
-
"navigation": [
|
636
|
-
{
|
637
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=3e53f16a-e086-4269-ba84-196cf21bf8a9",
|
638
|
-
"rels": [
|
639
|
-
"self"
|
640
|
-
],
|
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"
|
655
|
-
},
|
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"
|
663
|
-
},
|
664
|
-
"links": {
|
665
|
-
"profile": [
|
666
|
-
{
|
667
|
-
"href": "https://api-sandbox.pmp.io/profiles/image"
|
668
|
-
}
|
669
|
-
],
|
670
|
-
"alternate": [
|
671
|
-
{
|
672
|
-
"href": "/file/8"
|
673
|
-
}
|
674
|
-
],
|
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
|
-
}
|
685
|
-
],
|
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
|
-
]
|
700
|
-
}
|
701
|
-
}
|
513
|
+
"created": "2014-08-29T01:33:28+00:00",
|
514
|
+
"modified": "2014-08-29T01:33:28+00:00",
|
515
|
+
"title": "eZoGQKXOhOXCqMENt1r1",
|
516
|
+
"teaser": "lOXBY0frsp",
|
517
|
+
"guid": "0390510e-f1cb-4cef-b362-1e916d4c92f1",
|
518
|
+
"published": "2014-08-29T01:33:28+00:00"
|
519
|
+
},
|
520
|
+
"links": {
|
521
|
+
"profile": [
|
522
|
+
{
|
523
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
524
|
+
}
|
525
|
+
],
|
526
|
+
"creator": [
|
527
|
+
{
|
528
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
529
|
+
}
|
530
|
+
],
|
531
|
+
"item": [],
|
532
|
+
"navigation": [
|
533
|
+
{
|
534
|
+
"href": "https://api-sandbox.pmp.io/docs/0390510e-f1cb-4cef-b362-1e916d4c92f1",
|
535
|
+
"rels": [
|
536
|
+
"self"
|
702
537
|
]
|
538
|
+
}
|
539
|
+
]
|
540
|
+
}
|
541
|
+
},
|
542
|
+
{
|
543
|
+
"version": "1.0",
|
544
|
+
"href": "https://api-sandbox.pmp.io/docs/f237f87d-1f40-4178-9eba-b068b5dc6f7b",
|
545
|
+
"attributes": {
|
546
|
+
"valid": {
|
547
|
+
"from": "2014-08-29T01:23:59+00:00",
|
548
|
+
"to": "3014-08-29T01:23:59+00:00"
|
703
549
|
},
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
|
708
|
-
|
709
|
-
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
739
|
-
|
740
|
-
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
"item": [],
|
748
|
-
"navigation": [
|
749
|
-
{
|
750
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=0c9eeb61-dba5-431a-be8e-ad74c64aad2b",
|
751
|
-
"rels": [
|
752
|
-
"self"
|
753
|
-
]
|
754
|
-
}
|
755
|
-
]
|
756
|
-
}
|
550
|
+
"created": "2014-08-29T01:23:59+00:00",
|
551
|
+
"modified": "2014-08-29T01:24:00+00:00",
|
552
|
+
"hreflang": "en",
|
553
|
+
"guid": "f237f87d-1f40-4178-9eba-b068b5dc6f7b",
|
554
|
+
"title": "one more time",
|
555
|
+
"published": "2014-08-29T01:23:56+00:00",
|
556
|
+
"byline": "dmoore",
|
557
|
+
"contentencoded": "abc xyz"
|
558
|
+
},
|
559
|
+
"links": {
|
560
|
+
"profile": [
|
561
|
+
{
|
562
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
563
|
+
}
|
564
|
+
],
|
565
|
+
"alternate": [
|
566
|
+
{
|
567
|
+
"href": "http://pmp42dev/node/32"
|
568
|
+
}
|
569
|
+
],
|
570
|
+
"creator": [
|
571
|
+
{
|
572
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
573
|
+
}
|
574
|
+
],
|
575
|
+
"item": [],
|
576
|
+
"navigation": [
|
577
|
+
{
|
578
|
+
"href": "https://api-sandbox.pmp.io/docs/f237f87d-1f40-4178-9eba-b068b5dc6f7b",
|
579
|
+
"rels": [
|
580
|
+
"self"
|
581
|
+
]
|
582
|
+
}
|
583
|
+
]
|
584
|
+
}
|
585
|
+
},
|
586
|
+
{
|
587
|
+
"version": "1.0",
|
588
|
+
"href": "https://api-sandbox.pmp.io/docs/a8fd2d1c-d192-4460-b71e-dc454af94462",
|
589
|
+
"attributes": {
|
590
|
+
"valid": {
|
591
|
+
"from": "2014-08-29T01:31:33+00:00",
|
592
|
+
"to": "3014-08-29T01:31:33+00:00"
|
757
593
|
},
|
594
|
+
"created": "2014-08-29T01:31:33+00:00",
|
595
|
+
"modified": "2014-08-29T01:31:33+00:00",
|
596
|
+
"hreflang": "en",
|
597
|
+
"guid": "a8fd2d1c-d192-4460-b71e-dc454af94462",
|
598
|
+
"title": "PMPAPI Simpletest test: 21:31:28",
|
599
|
+
"published": "2014-08-29T01:21:24+00:00",
|
600
|
+
"byline": "glxcwskN",
|
601
|
+
"contentencoded": "mN4hGCbOywOMpaTEh3LF6vcYB6A20x7e"
|
602
|
+
},
|
603
|
+
"links": {
|
604
|
+
"profile": [
|
605
|
+
{
|
606
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
607
|
+
}
|
608
|
+
],
|
609
|
+
"alternate": [
|
610
|
+
{
|
611
|
+
"href": "/node/1"
|
612
|
+
}
|
613
|
+
],
|
614
|
+
"item": [
|
615
|
+
{
|
616
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4"
|
617
|
+
}
|
618
|
+
],
|
619
|
+
"creator": [
|
620
|
+
{
|
621
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
622
|
+
}
|
623
|
+
],
|
624
|
+
"navigation": [
|
625
|
+
{
|
626
|
+
"href": "https://api-sandbox.pmp.io/docs/a8fd2d1c-d192-4460-b71e-dc454af94462",
|
627
|
+
"rels": [
|
628
|
+
"self"
|
629
|
+
],
|
630
|
+
"totalitems": 1,
|
631
|
+
"totalpages": 1,
|
632
|
+
"pagenum": 1
|
633
|
+
}
|
634
|
+
]
|
635
|
+
},
|
636
|
+
"items": [
|
758
637
|
{
|
759
|
-
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
|
764
|
-
|
638
|
+
"version": "1.0",
|
639
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4",
|
640
|
+
"attributes": {
|
641
|
+
"valid": {
|
642
|
+
"from": "2014-08-29T01:31:27+00:00",
|
643
|
+
"to": "3014-08-29T01:31:27+00:00"
|
644
|
+
},
|
645
|
+
"created": "2014-08-29T01:31:27+00:00",
|
646
|
+
"modified": "2014-08-29T01:31:27+00:00",
|
647
|
+
"hreflang": "en",
|
648
|
+
"guid": "5870dde6-e310-49e7-896e-4935f35667d4",
|
649
|
+
"title": "image-test.jpg",
|
650
|
+
"published": "2014-08-29T01:21:24+00:00",
|
651
|
+
"byline": "Anonymous"
|
652
|
+
},
|
653
|
+
"links": {
|
654
|
+
"profile": [
|
655
|
+
{
|
656
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
657
|
+
}
|
658
|
+
],
|
659
|
+
"alternate": [
|
660
|
+
{
|
661
|
+
"href": "/file/9"
|
662
|
+
}
|
663
|
+
],
|
664
|
+
"enclosure": [
|
665
|
+
{
|
666
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/915137/image-test.jpg",
|
667
|
+
"meta": {
|
668
|
+
"crop": "primary",
|
669
|
+
"height": 20,
|
670
|
+
"width": 40
|
765
671
|
},
|
766
|
-
"
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
"
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
{
|
781
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
782
|
-
}
|
783
|
-
],
|
784
|
-
"item": [],
|
785
|
-
"navigation": [
|
786
|
-
{
|
787
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=a79b1983-bd6e-448c-ac6f-601dd5366f41",
|
788
|
-
"rels": [
|
789
|
-
"self"
|
790
|
-
]
|
791
|
-
}
|
672
|
+
"type": "image/jpeg"
|
673
|
+
}
|
674
|
+
],
|
675
|
+
"creator": [
|
676
|
+
{
|
677
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
678
|
+
}
|
679
|
+
],
|
680
|
+
"item": [],
|
681
|
+
"navigation": [
|
682
|
+
{
|
683
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4",
|
684
|
+
"rels": [
|
685
|
+
"self"
|
792
686
|
]
|
793
|
-
|
687
|
+
}
|
688
|
+
]
|
689
|
+
}
|
690
|
+
}
|
691
|
+
]
|
692
|
+
},
|
693
|
+
{
|
694
|
+
"version": "1.0",
|
695
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4",
|
696
|
+
"attributes": {
|
697
|
+
"valid": {
|
698
|
+
"from": "2014-08-29T01:31:27+00:00",
|
699
|
+
"to": "3014-08-29T01:31:27+00:00"
|
794
700
|
},
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
|
805
|
-
|
806
|
-
|
807
|
-
|
808
|
-
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
|
835
|
-
|
836
|
-
"rels": [
|
837
|
-
"self"
|
838
|
-
],
|
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"
|
853
|
-
},
|
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"
|
861
|
-
},
|
862
|
-
"links": {
|
863
|
-
"profile": [
|
864
|
-
{
|
865
|
-
"href": "https://api-sandbox.pmp.io/profiles/image"
|
866
|
-
}
|
867
|
-
],
|
868
|
-
"alternate": [
|
869
|
-
{
|
870
|
-
"href": "/file/8"
|
871
|
-
}
|
872
|
-
],
|
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
|
-
}
|
883
|
-
],
|
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
|
-
]
|
898
|
-
}
|
899
|
-
}
|
701
|
+
"created": "2014-08-29T01:31:27+00:00",
|
702
|
+
"modified": "2014-08-29T01:31:27+00:00",
|
703
|
+
"hreflang": "en",
|
704
|
+
"guid": "5870dde6-e310-49e7-896e-4935f35667d4",
|
705
|
+
"title": "image-test.jpg",
|
706
|
+
"published": "2014-08-29T01:21:24+00:00",
|
707
|
+
"byline": "Anonymous"
|
708
|
+
},
|
709
|
+
"links": {
|
710
|
+
"profile": [
|
711
|
+
{
|
712
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
713
|
+
}
|
714
|
+
],
|
715
|
+
"alternate": [
|
716
|
+
{
|
717
|
+
"href": "/file/9"
|
718
|
+
}
|
719
|
+
],
|
720
|
+
"enclosure": [
|
721
|
+
{
|
722
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/915137/image-test.jpg",
|
723
|
+
"meta": {
|
724
|
+
"crop": "primary",
|
725
|
+
"height": 20,
|
726
|
+
"width": 40
|
727
|
+
},
|
728
|
+
"type": "image/jpeg"
|
729
|
+
}
|
730
|
+
],
|
731
|
+
"creator": [
|
732
|
+
{
|
733
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
734
|
+
}
|
735
|
+
],
|
736
|
+
"item": [],
|
737
|
+
"navigation": [
|
738
|
+
{
|
739
|
+
"href": "https://api-sandbox.pmp.io/docs/5870dde6-e310-49e7-896e-4935f35667d4",
|
740
|
+
"rels": [
|
741
|
+
"self"
|
900
742
|
]
|
743
|
+
}
|
744
|
+
]
|
745
|
+
}
|
746
|
+
},
|
747
|
+
{
|
748
|
+
"version": "1.0",
|
749
|
+
"href": "https://api-sandbox.pmp.io/docs/29b68f08-f0a7-4425-b70d-570fed4012c7",
|
750
|
+
"attributes": {
|
751
|
+
"valid": {
|
752
|
+
"from": "2014-08-29T01:26:39+00:00",
|
753
|
+
"to": "3014-08-29T01:26:39+00:00"
|
901
754
|
},
|
755
|
+
"created": "2014-08-29T01:26:39+00:00",
|
756
|
+
"modified": "2014-08-29T01:26:39+00:00",
|
757
|
+
"hreflang": "en",
|
758
|
+
"guid": "29b68f08-f0a7-4425-b70d-570fed4012c7",
|
759
|
+
"title": "PMPAPI Simpletest test: 21:26:34",
|
760
|
+
"published": "2014-08-29T01:21:24+00:00",
|
761
|
+
"byline": "cvSHzVOn",
|
762
|
+
"contentencoded": "i4BDJn9vCY983TPHYA0yhRyoWh6R4dfG"
|
763
|
+
},
|
764
|
+
"links": {
|
765
|
+
"profile": [
|
766
|
+
{
|
767
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
768
|
+
}
|
769
|
+
],
|
770
|
+
"alternate": [
|
771
|
+
{
|
772
|
+
"href": "/node/1"
|
773
|
+
}
|
774
|
+
],
|
775
|
+
"item": [
|
776
|
+
{
|
777
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61"
|
778
|
+
}
|
779
|
+
],
|
780
|
+
"creator": [
|
781
|
+
{
|
782
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
783
|
+
}
|
784
|
+
],
|
785
|
+
"navigation": [
|
786
|
+
{
|
787
|
+
"href": "https://api-sandbox.pmp.io/docs/29b68f08-f0a7-4425-b70d-570fed4012c7",
|
788
|
+
"rels": [
|
789
|
+
"self"
|
790
|
+
],
|
791
|
+
"totalitems": 1,
|
792
|
+
"totalpages": 1,
|
793
|
+
"pagenum": 1
|
794
|
+
}
|
795
|
+
]
|
796
|
+
},
|
797
|
+
"items": [
|
902
798
|
{
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
908
|
-
|
799
|
+
"version": "1.0",
|
800
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
801
|
+
"attributes": {
|
802
|
+
"valid": {
|
803
|
+
"from": "2014-08-29T01:26:34+00:00",
|
804
|
+
"to": "3014-08-29T01:26:34+00:00"
|
805
|
+
},
|
806
|
+
"created": "2014-08-29T01:26:34+00:00",
|
807
|
+
"modified": "2014-08-29T01:26:34+00:00",
|
808
|
+
"hreflang": "en",
|
809
|
+
"guid": "2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
810
|
+
"title": "image-2.jpg",
|
811
|
+
"published": "2014-08-29T01:21:24+00:00",
|
812
|
+
"byline": "Anonymous"
|
813
|
+
},
|
814
|
+
"links": {
|
815
|
+
"profile": [
|
816
|
+
{
|
817
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
818
|
+
}
|
819
|
+
],
|
820
|
+
"alternate": [
|
821
|
+
{
|
822
|
+
"href": "/file/8"
|
823
|
+
}
|
824
|
+
],
|
825
|
+
"enclosure": [
|
826
|
+
{
|
827
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/106744/image-2.jpg",
|
828
|
+
"meta": {
|
829
|
+
"crop": "primary",
|
830
|
+
"height": 60,
|
831
|
+
"width": 80
|
909
832
|
},
|
910
|
-
"
|
911
|
-
|
912
|
-
|
913
|
-
|
914
|
-
|
915
|
-
"
|
916
|
-
|
917
|
-
|
918
|
-
"
|
919
|
-
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
"alternate": [
|
925
|
-
{
|
926
|
-
"href": "/file/8"
|
927
|
-
}
|
928
|
-
],
|
929
|
-
"enclosure": [
|
930
|
-
{
|
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"
|
938
|
-
}
|
939
|
-
],
|
940
|
-
"creator": [
|
941
|
-
{
|
942
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
943
|
-
}
|
944
|
-
],
|
945
|
-
"item": [],
|
946
|
-
"navigation": [
|
947
|
-
{
|
948
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=c2e536cf-f885-493f-a5f1-34dc87d53943",
|
949
|
-
"rels": [
|
950
|
-
"self"
|
951
|
-
]
|
952
|
-
}
|
833
|
+
"type": "image/jpeg"
|
834
|
+
}
|
835
|
+
],
|
836
|
+
"creator": [
|
837
|
+
{
|
838
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
839
|
+
}
|
840
|
+
],
|
841
|
+
"item": [],
|
842
|
+
"navigation": [
|
843
|
+
{
|
844
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
845
|
+
"rels": [
|
846
|
+
"self"
|
953
847
|
]
|
954
|
-
|
848
|
+
}
|
849
|
+
]
|
850
|
+
}
|
851
|
+
}
|
852
|
+
]
|
853
|
+
},
|
854
|
+
{
|
855
|
+
"version": "1.0",
|
856
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
857
|
+
"attributes": {
|
858
|
+
"valid": {
|
859
|
+
"from": "2014-08-29T01:26:34+00:00",
|
860
|
+
"to": "3014-08-29T01:26:34+00:00"
|
955
861
|
},
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
"
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
862
|
+
"created": "2014-08-29T01:26:34+00:00",
|
863
|
+
"modified": "2014-08-29T01:26:34+00:00",
|
864
|
+
"hreflang": "en",
|
865
|
+
"guid": "2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
866
|
+
"title": "image-2.jpg",
|
867
|
+
"published": "2014-08-29T01:21:24+00:00",
|
868
|
+
"byline": "Anonymous"
|
869
|
+
},
|
870
|
+
"links": {
|
871
|
+
"profile": [
|
872
|
+
{
|
873
|
+
"href": "https://api-sandbox.pmp.io/profiles/image"
|
874
|
+
}
|
875
|
+
],
|
876
|
+
"alternate": [
|
877
|
+
{
|
878
|
+
"href": "/file/8"
|
879
|
+
}
|
880
|
+
],
|
881
|
+
"enclosure": [
|
882
|
+
{
|
883
|
+
"href": "http://pmp42dev/sites/default/files/simpletest/106744/image-2.jpg",
|
884
|
+
"meta": {
|
885
|
+
"crop": "primary",
|
886
|
+
"height": 60,
|
887
|
+
"width": 80
|
888
|
+
},
|
889
|
+
"type": "image/jpeg"
|
890
|
+
}
|
891
|
+
],
|
892
|
+
"creator": [
|
893
|
+
{
|
894
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
895
|
+
}
|
896
|
+
],
|
897
|
+
"item": [],
|
898
|
+
"navigation": [
|
899
|
+
{
|
900
|
+
"href": "https://api-sandbox.pmp.io/docs/2acb0e5b-8626-429b-a3cc-d399621a9c61",
|
901
|
+
"rels": [
|
902
|
+
"self"
|
903
|
+
]
|
904
|
+
}
|
905
|
+
]
|
906
|
+
}
|
907
|
+
},
|
908
|
+
{
|
909
|
+
"version": "1.0",
|
910
|
+
"href": "https://api-sandbox.pmp.io/docs/0d3f7687-00c4-4df0-bcbb-bfd7c8dbc1c6",
|
911
|
+
"attributes": {
|
912
|
+
"valid": {
|
913
|
+
"from": "2014-08-28T18:17:11+00:00",
|
914
|
+
"to": "3014-08-28T18:17:11+00:00"
|
1009
915
|
},
|
1010
|
-
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1015
|
-
|
1016
|
-
|
1017
|
-
|
1018
|
-
|
1019
|
-
|
1020
|
-
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
"
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
}
|
1042
|
-
],
|
1043
|
-
"creator": [
|
1044
|
-
{
|
1045
|
-
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
1046
|
-
}
|
1047
|
-
],
|
1048
|
-
"navigation": [
|
1049
|
-
{
|
1050
|
-
"href": "https://api-sandbox.pmp.io/docs?guid=bb6e5679-c581-4db5-8b17-94365230d7e2",
|
1051
|
-
"rels": [
|
1052
|
-
"self"
|
1053
|
-
],
|
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"
|
1068
|
-
},
|
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"
|
1076
|
-
},
|
1077
|
-
"links": {
|
1078
|
-
"profile": [
|
1079
|
-
{
|
1080
|
-
"href": "https://api-sandbox.pmp.io/profiles/image"
|
1081
|
-
}
|
1082
|
-
],
|
1083
|
-
"alternate": [
|
1084
|
-
{
|
1085
|
-
"href": "/file/9"
|
1086
|
-
}
|
1087
|
-
],
|
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
|
-
}
|
1098
|
-
],
|
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
|
-
]
|
1113
|
-
}
|
1114
|
-
}
|
916
|
+
"created": "2014-08-28T18:17:11+00:00",
|
917
|
+
"modified": "2014-08-28T18:17:11+00:00",
|
918
|
+
"hreflang": "en",
|
919
|
+
"guid": "0d3f7687-00c4-4df0-bcbb-bfd7c8dbc1c6",
|
920
|
+
"title": "NPR One tweaks part8",
|
921
|
+
"published": "2014-08-28T18:17:09+00:00",
|
922
|
+
"byline": "root",
|
923
|
+
"contentencoded": "<p>abc</p>"
|
924
|
+
},
|
925
|
+
"links": {
|
926
|
+
"profile": [
|
927
|
+
{
|
928
|
+
"href": "https://api-sandbox.pmp.io/profiles/story"
|
929
|
+
}
|
930
|
+
],
|
931
|
+
"alternate": [
|
932
|
+
{
|
933
|
+
"href": "/post/npr-one-tweaks-part8"
|
934
|
+
}
|
935
|
+
],
|
936
|
+
"creator": [
|
937
|
+
{
|
938
|
+
"href": "https://api-sandbox.pmp.io/docs/39b744ba-e132-4ef3-9099-885aef0ff2f1"
|
939
|
+
}
|
940
|
+
],
|
941
|
+
"item": [],
|
942
|
+
"navigation": [
|
943
|
+
{
|
944
|
+
"href": "https://api-sandbox.pmp.io/docs/0d3f7687-00c4-4df0-bcbb-bfd7c8dbc1c6",
|
945
|
+
"rels": [
|
946
|
+
"self"
|
1115
947
|
]
|
1116
|
-
|
1117
|
-
|
948
|
+
}
|
949
|
+
]
|
950
|
+
}
|
951
|
+
}
|
952
|
+
]
|
1118
953
|
}
|