spec/fixtures/collection_root.json in pmp-0.4.0 vs spec/fixtures/collection_root.json in pmp-0.4.1
- old
+ new
@@ -1,368 +1,342 @@
{
- "version": "1.0",
- "href": "https://api-sandbox.pmp.io/",
- "attributes": {
- "valid": {
- "from": "2013-07-04T04:00:44+00:00",
- "to": "3013-07-04T04:00:44+00:00"
- },
- "created": "2014-07-24T23:02:27+00:00",
- "modified": "2014-07-24T23:02:27+00:00",
- "guid": "04224975-e93c-4b17-9df9-96db37d318f3",
- "title": "PMP Home Document",
- "published": "2013-07-04T04:00:44+00:00"
+ "version": "1.0",
+ "href": "https://api.pmp.io/",
+ "attributes": {
+ "valid": {
+ "from": "2013-07-04T04:00:44+00:00",
+ "to": "3013-07-04T04:00:44+00:00"
},
- "links": {
- "bookmark": [
- {
- "href": "https://api-sandbox.pmp.io/docs/trove",
- "rels": [
- "urn:pmp:trove"
- ]
- }
+ "created": "2014-09-04T15:06:19+00:00",
+ "modified": "2014-09-04T15:06:19+00:00",
+ "guid": "04224975-e93c-4b17-9df9-96db37d318f3",
+ "title": "PMP Home Document",
+ "published": "2013-07-04T04:00:44+00:00"
+ },
+ "links": {
+ "bookmark": [
+ {
+ "href": "https://api.pmp.io/docs/trove",
+ "rels": [
+ "urn:pmp:trove"
+ ]
+ }
+ ],
+ "creator": [
+ {
+ "href": "https://api.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
+ }
+ ],
+ "item": [],
+ "navigation": [
+ {
+ "href": "https://api.pmp.io/docs?guid=04224975-e93c-4b17-9df9-96db37d318f3",
+ "rels": [
+ "self"
+ ]
+ }
+ ],
+ "query": [
+ {
+ "href-template": "https://api.pmp.io/docs/{guid}{?limit,offset}",
+ "title": "Access documents",
+ "rels": [
+ "urn:collectiondoc:hreftpl:docs"
],
- "creator": [
- {
- "href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
- }
+ "href-vars": {
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/profiles/{guid}",
+ "title": "Access profiles",
+ "rels": [
+ "urn:collectiondoc:hreftpl:profiles"
],
- "item": [],
- "navigation": [
- {
- "href": "https://api-sandbox.pmp.io/docs?guid=04224975-e93c-4b17-9df9-96db37d318f3",
- "rels": [
- "self"
- ]
- }
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/schemas/{guid}",
+ "title": "Access schemas",
+ "rels": [
+ "urn:collectiondoc:hreftpl:schemas"
],
- "query": [
- {
- "href-template": "https://api-sandbox.pmp.io/docs{/guid}{?limit,offset}",
- "title": "Access documents",
- "rels": [
- "urn:collectiondoc:hreftpl:docs"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
- "title": "Query for documents",
- "rels": [
- "urn:collectiondoc:query:docs"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
- "searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
- "startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
- "enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
- "writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
- "tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
- "language": "http://docs.pmp.io/wiki/Content-Retrieval#language",
- "profile": "http://docs.pmp.io/wiki/Content-Retrieval#profile",
- "collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
- "has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
- "distributor": "http://docs.pmp.io/wiki/Content-Retrieval#distributor",
- "distributorgroup": "http://docs.pmp.io/wiki/Content-Retrieval#distributorgroup",
- "author": "http://docs.pmp.io/wiki/Content-Retrieval#author",
- "text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
- "title": "Access profiles",
- "rels": [
- "urn:collectiondoc:hreftpl:profiles"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
- "title": "Query for profiles",
- "rels": [
- "urn:collectiondoc:query:profiles"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
- "searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
- "startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
- "enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
- "writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
- "tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
- "collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
- "text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
- "title": "Access schemas",
- "rels": [
- "urn:collectiondoc:hreftpl:schemas"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/schemas{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
- "title": "Query for schemas",
- "rels": [
- "urn:collectiondoc:query:schemas"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
- "searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
- "startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
- "enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
- "writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
- "tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
- "collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
- "text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
- "title": "Query for users",
- "rels": [
- "urn:collectiondoc:query:users"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
- "searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
- "startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
- "enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
- "writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
- "tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
- "collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
- "text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href-template": "https://api-sandbox.pmp.io/groups{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,has,text}",
- "title": "Query for groups",
- "rels": [
- "urn:collectiondoc:query:groups"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Content-Retrieval#guid",
- "limit": "http://docs.pmp.io/wiki/Content-Retrieval#limit",
- "offset": "http://docs.pmp.io/wiki/Content-Retrieval#offset",
- "searchsort": "http://docs.pmp.io/wiki/Content-Retrieval#searchsort",
- "startdate": "http://docs.pmp.io/wiki/Content-Retrieval#startdate",
- "enddate": "http://docs.pmp.io/wiki/Content-Retrieval#enddate",
- "writeable": "http://docs.pmp.io/wiki/Content-Retrieval#writeable",
- "tag": "http://docs.pmp.io/wiki/Content-Retrieval#tag",
- "collection": "http://docs.pmp.io/wiki/Content-Retrieval#collection",
- "has": "http://docs.pmp.io/wiki/Content-Retrieval#has",
- "text": "http://docs.pmp.io/wiki/Content-Retrieval#text"
- },
- "hints": {
- "allow": [
- "GET"
- ]
- }
- },
- {
- "href": "https://api-sandbox.pmp.io/guids",
- "title": "Generate guids",
- "rels": [
- "urn:collectiondoc:query:guids"
- ],
- "hints": {
- "allow": [
- "POST"
- ],
- "accept-post": [
- "application/x-www-form-urlencoded"
- ]
- },
- "type": "application/json"
- }
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/docs{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,language,profile,collection,has,distributor,distributorgroup,author,text}",
+ "title": "Query for documents",
+ "rels": [
+ "urn:collectiondoc:query:docs"
],
- "edit": [
- {
- "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
- "title": "Document Save",
- "rels": [
- "urn:collectiondoc:form:documentsave"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
- },
- "hints": {
- "formats": [
- "application/vnd.collection.doc+json"
- ],
- "allow": [
- "PUT",
- "DELETE"
- ],
- "docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
- }
- },
- {
- "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
- "title": "Profile Save",
- "rels": [
- "urn:collectiondoc:form:profilesave"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
- },
- "hints": {
- "formats": [
- "application/vnd.collection.doc+json"
- ],
- "allow": [
- "PUT",
- "DELETE"
- ],
- "docs": "http://docs.pmp.io/wiki/Profile-profile"
- }
- },
- {
- "href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
- "title": "Schema Save",
- "rels": [
- "urn:collectiondoc:form:schemasave"
- ],
- "href-vars": {
- "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
- },
- "hints": {
- "formats": [
- "application/vnd.collection.doc+json"
- ],
- "allow": [
- "PUT",
- "DELETE"
- ],
- "docs": "http://docs.pmp.io/wiki/Schema-profile"
- }
- },
- {
- "href": "https://publish-sandbox.pmp.io/files",
- "title": "Upload a rich media file",
- "rels": [
- "urn:collectiondoc:form:mediaupload"
- ],
- "href-vars": {
- "submission": "http://docs.pmp.io/wiki/Media-File-Upload"
- },
- "hints": {
- "allow": [
- "POST"
- ],
- "accept-post": [
- "multipart/form-data"
- ]
- }
- }
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
+ "startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
+ "enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
+ "writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
+ "tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
+ "language": "http://docs.pmp.io/wiki/Querying-the-API#language",
+ "profile": "http://docs.pmp.io/wiki/Querying-the-API#profile",
+ "collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
+ "has": "http://docs.pmp.io/wiki/Querying-the-API#has",
+ "distributor": "http://docs.pmp.io/wiki/Querying-the-API#distributor",
+ "distributorgroup": "http://docs.pmp.io/wiki/Querying-the-API#distributorgroup",
+ "author": "http://docs.pmp.io/wiki/Querying-the-API#author",
+ "text": "http://docs.pmp.io/wiki/Querying-the-API#text"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/profiles{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
+ "title": "Query for profiles",
+ "rels": [
+ "urn:collectiondoc:query:profiles"
],
- "auth": [
- {
- "href": "https://publish-sandbox.pmp.io/auth/credentials",
- "title": "Create OAuth2 Credentials",
- "rels": [
- "urn:collectiondoc:form:createcredentials"
- ],
- "hints": {
- "allow": [
- "POST"
- ],
- "docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#generating-credentials"
- }
- },
- {
- "href-template": "https://publish-sandbox.pmp.io/auth/credentials/{client_id}",
- "title": "Remove OAuth2 Credentials",
- "rels": [
- "urn:collectiondoc:form:removecredentials"
- ],
- "hints": {
- "allow": [
- "DELETE"
- ],
- "docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#removing-a-credential"
- }
- },
- {
- "href": "https://api-sandbox.pmp.io/auth/access_token",
- "title": "Issue OAuth2 Token",
- "rels": [
- "urn:collectiondoc:form:issuetoken"
- ],
- "hints": {
- "allow": [
- "POST"
- ],
- "accept-post": [
- "application/x-www-form-urlencoded"
- ],
- "docs": "http://docs.pmp.io/wiki/Authentication-Model#token-management"
- }
- },
- {
- "href": "https://publish-sandbox.pmp.io/auth/access_token",
- "title": "Revoke OAuth2 Token",
- "rels": [
- "urn:collectiondoc:form:revoketoken"
- ],
- "hints": {
- "allow": [
- "DELETE"
- ],
- "docs": "http://docs.pmp.io/wiki/Authentication-Model#revoke-a-token"
- }
- }
- ]
- }
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
+ "startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
+ "enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
+ "writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
+ "tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
+ "collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
+ "text": "http://docs.pmp.io/wiki/Querying-the-API#text"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/schemas{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
+ "title": "Query for schemas",
+ "rels": [
+ "urn:collectiondoc:query:schemas"
+ ],
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
+ "startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
+ "enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
+ "writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
+ "tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
+ "collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
+ "text": "http://docs.pmp.io/wiki/Querying-the-API#text"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/users{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,text}",
+ "title": "Query for users",
+ "rels": [
+ "urn:collectiondoc:query:users"
+ ],
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
+ "startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
+ "enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
+ "writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
+ "tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
+ "collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
+ "text": "http://docs.pmp.io/wiki/Querying-the-API#text"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ },
+ {
+ "href-template": "https://api.pmp.io/groups{?guid,limit,offset,searchsort,startdate,enddate,writeable,tag,collection,has,text}",
+ "title": "Query for groups",
+ "rels": [
+ "urn:collectiondoc:query:groups"
+ ],
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Querying-the-API#guid",
+ "limit": "http://docs.pmp.io/wiki/Querying-the-API#limit",
+ "offset": "http://docs.pmp.io/wiki/Querying-the-API#offset",
+ "searchsort": "http://docs.pmp.io/wiki/Querying-the-API#searchsort",
+ "startdate": "http://docs.pmp.io/wiki/Querying-the-API#startdate",
+ "enddate": "http://docs.pmp.io/wiki/Querying-the-API#enddate",
+ "writeable": "http://docs.pmp.io/wiki/Querying-the-API#writeable",
+ "tag": "http://docs.pmp.io/wiki/Querying-the-API#tag",
+ "collection": "http://docs.pmp.io/wiki/Querying-the-API#collection",
+ "has": "http://docs.pmp.io/wiki/Querying-the-API#has",
+ "text": "http://docs.pmp.io/wiki/Querying-the-API#text"
+ },
+ "hints": {
+ "allow": [
+ "GET"
+ ]
+ }
+ }
+ ],
+ "edit": [
+ {
+ "href-template": "https://publish.pmp.io/docs/{guid}",
+ "title": "Document Save",
+ "rels": [
+ "urn:collectiondoc:form:documentsave"
+ ],
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "hints": {
+ "formats": [
+ "application/vnd.collection.doc+json"
+ ],
+ "allow": [
+ "PUT"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Collection.doc-JSON-Media-Type"
+ }
+ },
+ {
+ "href-template": "https://publish.pmp.io/docs/{guid}",
+ "title": "Document Delete",
+ "rels": [
+ "urn:collectiondoc:form:documentdelete"
+ ],
+ "href-vars": {
+ "guid": "http://docs.pmp.io/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "hints": {
+ "allow": [
+ "DELETE"
+ ]
+ }
+ },
+ {
+ "href": "https://publish.pmp.io/files",
+ "title": "Upload a rich media file",
+ "rels": [
+ "urn:collectiondoc:form:mediaupload"
+ ],
+ "href-vars": {
+ "submission": "http://docs.pmp.io/wiki/Media-File-Upload"
+ },
+ "hints": {
+ "allow": [
+ "POST"
+ ],
+ "accept-post": [
+ "multipart/form-data"
+ ]
+ }
+ }
+ ],
+ "auth": [
+ {
+ "href": "https://api.pmp.io/auth/credentials",
+ "title": "List OAuth2 Credentials",
+ "rels": [
+ "urn:collectiondoc:form:listcredentials"
+ ],
+ "hints": {
+ "allow": [
+ "GET"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#testing-access"
+ }
+ },
+ {
+ "href": "https://publish.pmp.io/auth/credentials",
+ "title": "Create OAuth2 Credentials",
+ "rels": [
+ "urn:collectiondoc:form:createcredentials"
+ ],
+ "hints": {
+ "allow": [
+ "POST"
+ ],
+ "accept-post": [
+ "application/x-www-form-urlencoded"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#generating-credentials"
+ }
+ },
+ {
+ "href-template": "https://publish.pmp.io/auth/credentials/{client_id}",
+ "title": "Remove OAuth2 Credentials",
+ "rels": [
+ "urn:collectiondoc:form:removecredentials"
+ ],
+ "hints": {
+ "allow": [
+ "DELETE"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Authenticating-with-the-API#removing-a-credential"
+ }
+ },
+ {
+ "href": "https://api.pmp.io/auth/access_token",
+ "title": "Issue OAuth2 Token",
+ "rels": [
+ "urn:collectiondoc:form:issuetoken"
+ ],
+ "hints": {
+ "allow": [
+ "POST"
+ ],
+ "accept-post": [
+ "application/x-www-form-urlencoded"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Authentication-Model#token-management"
+ }
+ },
+ {
+ "href": "https://publish.pmp.io/auth/access_token",
+ "title": "Revoke OAuth2 Token",
+ "rels": [
+ "urn:collectiondoc:form:revoketoken"
+ ],
+ "hints": {
+ "allow": [
+ "DELETE"
+ ],
+ "docs": "http://docs.pmp.io/wiki/Authentication-Model#revoke-a-token"
+ }
+ }
+ ]
+ }
}