xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle Example: Code Block |
---|
curl http://localhost:8080/rest/ | jcr:systemjcrversionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572bResponse: Code Block |
---|
Status: 200 OK
Response | OK Headers Link: http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b?limit=-1&offset=0;rel="first"
Content-Type: text/turtleBody:<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://fedora.info/definitions/v4/rest-api#exportsAs> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/fcr:export?format=jcr/xml> ;
<http://fedora.info/definitions/v4/rest-api#hasVersions> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/fcr:versions> .
ETag: "39f0d8a01a066771e56f70be892a39a7b505843c"
Last-Modified: Tue, 20 May 2014 19:29:10 GMT
Content-Type: text/turtle
Body:
<http://localhost:8080/rest/ | jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572bexport?format=jcr/xml>versions/87a0a8c317f1e72c658170-624d-40f9-96cb-21ede3392155> <http:// | wwww3.org200001rdf-schema#label>repository#primaryType> " | jcr/xmlnt:frozenNode"^^<http://www.w3.org/2001/XMLSchema#string> | .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b>www.w3.org/ns/ldp#nextPage> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b?limit=-1&offset=-1> ;
<httpfedora.info/definitions/v4/repository#frozenPrimaryType> "nt:folder"^^<http://www.w3.org/ | ns/ldp#firstPage> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b?limit=-1&offset=0><http://www.w3.org/ns/ldp#inlinedResource><http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:versionLabels>.
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:versionLabels> <http://fedora.info/definitions/v4/ | repository#hasParent> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://fedora.info/definitions/v4/repository#hasChild> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:versionLabels> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:versionLabels>repository#created> "2014-05-20T19:29:00.192Z"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/ | repository#primaryType>repository#frozenMixinTypes> " | ntversionLabelsresource"^^<http://www.w3.org/2001/XMLSchema#string> | .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://, "mix:versionable"^^<http://www.w3.org/ | nsldp#inlinedResource> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:rootVersion> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:rootVersion> <http://fedora.info/definitions/v4/repository#hasParent> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://fedora.info/definitions/v4/repository#hasChild> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:rootVersion> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b/jcr:rootVersion> <http://fedora.info/definitions/v4/repository#primaryType> "nt:version"XMLSchema#string> , "fedora:object"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/ | repository#created>repository#lastModified> " | 20131212T14315241Z555Z"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/ | repository#uuid>85edf2a7287d49bdb834d49fbaa1ea23cc4274563612"^^<http://www.w3.org/2001/XMLSchema#string> | .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b>www.w3.org/ns/ldp#membersInlined> "truefedora.info/definitions/v4/repository#lastModifiedBy> "bypassAdmin"^^<http://www.w3.org/2001/XMLSchema#string> ;
| awww.w3.org/ns/ldp#Container> ;
<httpfedora.info/definitions/v4/repository#uuid> "87a0a8c317f1e72c658170-624d-40f9-96cb-21ede3392155"^^<http://www.w3.org/ | ns/ldp#membershipSubject> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b><http://www.w3.org/ns/ldp#membershipPredicate> <http://fedora.info/definitions/v4/ | repository#hasChild> ;
<httprepository#createdBy> "bypassAdmin"^^<http://www.w3.org/ | nsldp#membershipObject> <http://www.w3.org/ns/ldp#MemberSubject> XMLSchema#string> ;
a <http://www. | w3ns/ldp#Page> ;
jcr/nt/1.0frozenNode> , <http://www. | w3/ns/ldp#pageOf> <http://localhost:8080/rest:systemjcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> ;
fedora.info/definitions/v4/repository#hasParent> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f> <http://fedora.info/definitions/v4/repository#hasChild> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://www.w3.org/ns/ldp#inlinedResource> <http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f> .
<http://localhost:8080/rest/jcr:system/jcr:versionStorage/25/7c/4f> <http://fedora.info/definitions/v4/repository#primaryType> "mode:versionHistoryFolder"^^<http://www.w3.org/2001/XMLSchema#string> .
<httpwww.jcp.org/jcr/mix/1.0referenceable> .
|
Status: Status |
---|
| |
---|
subtle | true |
---|
colour | Green |
---|
title | 200 |
---|
| OK Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 404 |
---|
| Not Found: if the version or the resource does not existResponse: The requested resource is not available.
Create a new version of an object
Request Headers SLUG (Required) A suggested name for the new child resource, which the repository may ignore. Example: Code Block |
---|
curl -X POST -H "Slug: newVersionName" http://localhost:8080/rest/ | jcr:system/jcr:versionStorage/25/7c/4f/257c4fc463d7db126cf4c9dfe34a6a7b344c572b> <http://fedora.info/definitions/v4/repository#primaryType> "nt:versionHistory"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#versionableUuid> "19cd1832-a5d7-4965-9564-579b1684a003"^^<http://www.w3.org/2001/XMLSchema#string> ;
<http://fedora.info/definitions/v4/repository#uuid> "19cd1832-a5d7-4965-9564-579b1684a003"^^<http://www.w3.org/2001/XMLSchema#string> .
|