- Check if a resource is versionable and discover the TimeMap/LDPCv
- HEAD on the LDPR:
Link rel="type" http://fedora.info/definitions/fcrepo#VersionedResource
indicates versioning support,Link rel="timemap"
points to LDPCv/TimeMap
- HEAD on the LDPR:
- Check if we can create versions
- OPTIONS on LDPCv/TimeMap:
Allow: POST
indicates that versions can be created
- OPTIONS on LDPCv/TimeMap:
- Create a new version
- POST to LDPCv/TimeMap with
Memento-Datetime
header and body to create a historic version with the specified body and datetime - POST to LDPCv/TimeMap with a body and no
Memento-Datetime
header to create a version with the specified body and the current datetime - POST to LDPCv/TimeMap with
Memento-Datetime
header and no body to create a historic version with the current state of the LDPRv and the specified datetime - POST to the LDPCv/TimeMap with no
Memento-Datetime
header or body to create version with current state of the resource and the resource's last-modified date as the datetime
- POST to LDPCv/TimeMap with
- List existing versions:
- GET to LDPCv/TimeMap with
Accept: application/link-format
for link-value serialization - GET to LDPCv/TimeMap without
Accept
header (or with an RDF type) for an RDF serialization
- GET to LDPCv/TimeMap with
- Retrieve an existing version:
- GET to LDPRv/TimeGate with
Accept-Datetime
header - GET to LDPRm/Memento (if the LDPRm/Memento has its own URI)
- GET to LDPRv/TimeGate with
- Delete an existing version:
- DELETE to LDPRm/Memento
- Restore an existing version:
PUT to LDPRv/TimeGate with(conflicts with LDP)Memento-Datetime
header indicating the version to restore- PATCH to LDPRv/TimeGate with no body and
Memento-Datetime
header indicating the version to restore - Or: PUT to LDPRv/TimeGate with header (can't be
Content-Location
, but something like it) pointing to the LDPRm/Memento URI to indicate the version to restore
Last active
September 21, 2017 17:17
-
-
Save escowles/69b8aeac25e4a3839df0710e03378c6a to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment