Table of Contents |
---|
Excerpt |
---|
Request URI: /path/to/some/resource/fcr:versions Methods: GET, POST, PATCH
|
Status |
|
...
application/ld+json, application/ |
...
n-triples, application/rdf+xml, application/x-turtle, application/ |
...
xhtml+ |
...
xml, application/ |
...
xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle Example:
Response:
Status:
|
...
This resource is not versioned or this resource is not exist. Response: The requested resource is not available.
Request Headers: ACCEPT |
title | GET |
---|
...
application/ld+json, application/ |
...
n-triples, application/rdf+xml, application/ |
...
x-turtle, application/xhtml+xml, application/ |
...
xml, text/html, text/n3, text/plain, text/rdf+n3, text/turtle Example:
Response:
Status:
Response: The requested resource is not available.
Request Headers SLUG (Required) A suggested name for the new child resource, which the repository may ignore. Example:
Response:
|
colour | Blue |
---|---|
title | POST |
...
Status:
|
...
...
Example:
Code Block |
---|
curl -X POST http://localhost:8080/rest/path/to/resource/fcr:versions/newVersionName |
Response:
Code Block |
---|
Status: 204 No Content |
Status:
|
...
|
...
|
...
Conflict: if |
...
the version |
...
label is already in use for another version of this rexource Response: The requested resource is not available. |
...
Example:
Response:
Status:
Response: The requested resource is not available.
Methods: DELETE
Status |
|
Code Block |
---|
curl -X DELETE http://localhost:8080/rest/path/to/resource/fcr:versions/versionName |
Response:
Code Block |
---|
Status: 204 No Content |
Note |
---|
Trying to delete the current version of a resource will result in an error. To revert to an old version of a resource, first revert to the old version using the PATCH method, and then delete the newer version. |
Status:
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Response: Cannot remove current version
Status | ||||||||
---|---|---|---|---|---|---|---|---|
|
Response: The requested resource is not available.