Skip to content

Instantly share code, notes, and snippets.

@ricardozanini
Created August 3, 2020 22:54
Show Gist options
  • Save ricardozanini/1e02c046936d36c226229cca0d7aac47 to your computer and use it in GitHub Desktop.
Save ricardozanini/1e02c046936d36c226229cca0d7aac47 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://kogito-example.com/persons
# You should see a response like this:
{"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