Created
April 13, 2018 21:24
-
-
Save jcoyne/dfa437a8f4993aef168a36d2f625aba8 to your computer and use it in GitHub Desktop.
Taco Script 4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$comment": "This is a fixture used for testing. It was derived from create-bs646cd8717.json", | |
"@context": "http://sdr.sul.stanford.edu/contexts/taco-base.jsonld", | |
"@type": "http://sdr.sul.stanford.edu/models/sdr3-collection.jsonld", | |
"citation": "Leon Kolb Collection of Portraits. https://purl.stanford.edu/bs646cd8717", | |
"depositor": { | |
"name": "DOR", | |
"sunetID": "DOR" | |
}, | |
"label": "Leon Kolb Collection of Portraits", | |
"access": { | |
"access": "world", | |
"copyright": "This work is copyrighted by the creator.", | |
"download": "world", | |
"reuseAndReproductionStatement": "Property rights reside with the repository. Literary rights reside with the creators of the documents or their heirs. To obtain permission to publish or reproduce, please contact the Special Collections Public Services Librarian at speccollref@stanford.edu." | |
}, | |
"administrative": { | |
"deleted": false, | |
"sdrPreserve": true, | |
"remediatedBy": [ | |
{ | |
"name": "Laura Wilsey", | |
"sunetID": "lauraw15" | |
} | |
] | |
}, | |
"identification": { | |
"catkey": "4084372", | |
"sourceId": "bib4084372" | |
}, | |
"structural": { | |
"hasAgreement": "druid:dd327qr3670", | |
"hasMember": [], | |
"isTargetOf": "", | |
"hasMemberOrders": [] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Healthcheck | |
curl http://taco-demo.sul.stanford.edu/v1/healthcheck | |
# Create | |
curl -H "Content-Type: application/json" \ | |
-H "On-Behalf-Of: lmcrae@stanford.edu" \ | |
-d@examples/request1.json \ | |
http://taco-demo.sul.stanford.edu/v1/resource | |
# Retrieve | |
curl -H "Content-Type: application/json" \ | |
-H "On-Behalf-Of: lmcrae@stanford.edu" \ | |
http://taco-demo.sul.stanford.edu/v1/resource/n | |
# Update | |
curl -X PATCH -H "Content-Type: application/json" \ | |
-H "On-Behalf-Of: lmcrae@stanford.edu" \ | |
-d@examples/request2.json \ | |
http://taco-demo.sul.stanford.edu/v1/resource/n |
eefahy
commented
Apr 13, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment