Skip to content

Instantly share code, notes, and snippets.

@jcoyne
Last active March 2, 2018 22:30
Show Gist options
  • Save jcoyne/bbd4a0bda40f27ac42e6a00cd3a8c96f to your computer and use it in GitHub Desktop.
Save jcoyne/bbd4a0bda40f27ac42e6a00cd3a8c96f to your computer and use it in GitHub Desktop.
TACO Sprint 2 Demo Script
curl -X POST -H "Content-Type: application/json" -d@examples/request.json http://taco-dev.sul.stanford.edu/v1/resource
curl -s http://taco-dev.sul.stanford.edu/v1/resource/ | json_pp
curl -X PATCH -H "Content-Type: application/json" -d@examples/update_request.json http://taco-dev.sul.stanford.edu/v1/resource/
curl -s http://taco-dev.sul.stanford.edu/v1/resource/ | json_pp
curl -F "upload=@README.md;type=text/plain" http://taco-dev.sul.stanford.edu/v1/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment