Skip to content

Instantly share code, notes, and snippets.

@ricardozanini
Created August 3, 2020 22:33
Show Gist options
  • Save ricardozanini/f2cb70b17a16c22a5f42e8b4a5ff270e to your computer and use it in GitHub Desktop.
Save ricardozanini/f2cb70b17a16c22a5f42e8b4a5ff270e to your computer and use it in GitHub Desktop.
curl -X POST -H 'Content-Type:application/json' -H 'Accept:application/json' -d '{"person" : {"name" : "john", "age" : 20}}' http://localhost:8080/persons
# The response should be something like:
# {"id":"90fab845-ae55-4118-b808-8c301c3060a5","person":{"name":"john","age":20,"adult":true}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment