Created
April 16, 2016 21:31
-
-
Save abuiles/44d8b5358f009385550cf8e4246d82c1 to your computer and use it in GitHub Desktop.
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
curl http://localhost:3000/loans -X POST \ | |
-H 'Content-Type: application/vnd.api+json' \ | |
--data-binary '{"data":{"type": "loans","attributes": {"notes": "minor scratches in the face shield","returned": false},"relationships":{"friend": {"data":{"id":"2","type": "friends"}},"article": {"data":{"id":"1","type": "articles"}}}}}' | jq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment