ro-crate document response
This creates an 'ro-crate' json document response. It has two flavours:
- attached: the contentUrl for each file is relative eg the ro-crate.json will accompany the files in a zip file
- detached: the contentUrl for each file is an absolute url
If you are testing locally:
- include this in your docker compose override: '- hubbub.url=https://hubbub.staging.ceh.ac.uk/v7'
- add 'hubbub-password=' to secrets.env
- example calls:
- GET localhost:8080/documents/c88921ba-f871-44c3-9339-51c5bee4024a?format=rocrate
- GET localhost:8080/documents/c88921ba-f871-44c3-9339-51c5bee4024a?format=rocrate-attached
- GET localhost:8080/documents/c88921ba-f871-44c3-9339-51c5bee4024a? Accept: application/vnd.rocrate.ld+json
- GET localhost:8080/documents/c88921ba-f871-44c3-9339-51c5bee4024a? Accept: application/vnd.rocrate-attached.ld+json Closes EMC-243