spec/fixtures/collection_root.json in pmp-0.1.0 vs spec/fixtures/collection_root.json in pmp-0.1.1
- old
+ new
@@ -1,10 +1,10 @@
{
"attributes": {
"created": "2013-10-01T15:57:55+00:00",
"guid": "04224975-e93c-4b17-9df9-96db37d318f3",
- "modified": "2013-10-04T14:45:34+00:00",
+ "modified": "2013-10-17T17:24:32+00:00",
"published": "2013-07-04T04:00:44+00:00",
"title": "PMP Home Document",
"valid": {
"from": "2013-07-04T04:00:44+00:00",
"to": "3013-07-04T04:00:44+00:00"
@@ -16,12 +16,86 @@
"href": "https://api-sandbox.pmp.io/docs/af676335-21df-4486-ab43-e88c1b48f026"
}
],
"edit": [
{
- "href": "https://publish-sandbox.pmp.io/docs",
- "method": "PUT"
+ "hints": {
+ "allow": [
+ "PUT",
+ "DELETE"
+ ],
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Collection.doc-JSON-Media-Type",
+ "formats": [
+ "application/vnd.pmp.collection.doc+json"
+ ]
+ },
+ "href-template": "https://publish-sandbox.pmp.io/docs{/guid}",
+ "href-vars": {
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "rels": [
+ "urn:pmp:form:documentsave"
+ ],
+ "title": "Document Save"
+ },
+ {
+ "hints": {
+ "allow": [
+ "PUT",
+ "DELETE"
+ ],
+ "docs": "https://github.com/publicmediaplatform/pmpdocs/wiki/Profile-profile",
+ "formats": [
+ "application/vnd.pmp.collection.doc+json"
+ ]
+ },
+ "href-template": "https://publish-sandbox.pmp.io/profiles{/guid}",
+ "href-vars": {
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "rels": [
+ "urn:pmp:form:profilesave"
+ ],
+ "title": "Profile Save"
+ },
+ {
+ "hints": {
+ "allow": [
+ "PUT",
+ "DELETE"
+ ],
+ "docs": "http://json-schema.org/",
+ "formats": [
+ "application/schema+json"
+ ]
+ },
+ "href-template": "https://publish-sandbox.pmp.io/schemas{/guid}",
+ "href-vars": {
+ "guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Globaly-Unique-Identifiers-for-PMP-Documents"
+ },
+ "rels": [
+ "urn:pmp:form:schemasave"
+ ],
+ "title": "Schema Save"
+ },
+ {
+ "hints": {
+ "accept-post": [
+ "multipart/form-data"
+ ],
+ "allow": [
+ "POST"
+ ]
+ },
+ "href": "https://publish-sandbox.pmp.io/files",
+ "href-vars": {
+ "submission": "https://github.com/publicmediaplatform/pmpdocs/wiki/Media-File-Upload"
+ },
+ "rels": [
+ "urn:pmp:form:mediaupload"
+ ],
+ "title": "Upload a rich media file"
}
],
"navigation": [
{
"href": "https://api-sandbox.pmp.io/docs?guid=04224975-e93c-4b17-9df9-96db37d318f3",
@@ -73,13 +147,11 @@
"title": "Query for groups"
},
{
"hints": {
"allow": [
- "GET",
- "PUT",
- "DELETE"
+ "GET"
]
},
"href-template": "https://api-sandbox.pmp.io/profiles{/guid}",
"href-vars": {
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
@@ -90,13 +162,11 @@
"title": "Access profiles"
},
{
"hints": {
"allow": [
- "GET",
- "PUT",
- "DELETE"
+ "GET"
]
},
"href-template": "https://api-sandbox.pmp.io/schemas{/guid}",
"href-vars": {
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval"
@@ -108,13 +178,11 @@
"type": "application/schema+json"
},
{
"hints": {
"allow": [
- "GET",
- "PUT",
- "DELETE"
+ "GET"
]
},
"href-template": "https://api-sandbox.pmp.io/docs{/guid}{?limit,offset}",
"href-vars": {
"guid": "https://github.com/publicmediaplatform/pmpdocs/wiki/Content-Retrieval",
@@ -153,26 +221,24 @@
"urn:pmp:query:docs"
],
"title": "Query for documents"
},
{
+ "hints": {
+ "accept-post": [
+ "application/x-www-form-urlencoded"
+ ],
+ "allow": [
+ "POST"
+ ]
+ },
"href": "https://api-sandbox.pmp.io/guids",
- "method": "POST",
"rels": [
"urn:pmp:query:guids"
],
"title": "Generate guids",
"type": "application/json"
- },
- {
- "href": "https://publish-sandbox.pmp.io/files",
- "method": "POST",
- "rels": [
- "urn:pmp:query:files"
- ],
- "title": "Upload media files",
- "type": "multipart/form-data"
}
]
},
"version": "1.0"
-}
\ No newline at end of file
+}