Skip to content

Instantly share code, notes, and snippets.

@featherart
Created February 6, 2020 07:26
Show Gist options
  • Save featherart/1447b97b02633e2f2a1b58cd87c0db2c to your computer and use it in GitHub Desktop.
Save featherart/1447b97b02633e2f2a1b58cd87c0db2c to your computer and use it in GitHub Desktop.
# 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