Created
February 6, 2020 07:26
-
-
Save featherart/1447b97b02633e2f2a1b58cd87c0db2c 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
# create a new todo item | |
curl -H "Content-Type: application/json" -X POST -d '{"item":{"description":"learn elixir", "priority":1, "is_complete": false }}' http://localhost:4000/api/items | |
# list items | |
curl -H "Content-Type: application/json" -X GET http://localhost:4000/api/items |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment