Skip to content

Instantly share code, notes, and snippets.

@franciscocpg
Last active October 15, 2015 19:01
Show Gist options
  • Select an option

  • Save franciscocpg/f88b0f3afcb87160b00c to your computer and use it in GitHub Desktop.

Select an option

Save franciscocpg/f88b0f3afcb87160b00c to your computer and use it in GitHub Desktop.
Example how to call post with payload

This examples work with json-server

curl -X POST  -H "Content-Type: application/json" -d '[{"name":"user20","id":20}]' http://localhost:3000/users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment