Skip to content

Instantly share code, notes, and snippets.

@marianocodes
Created June 3, 2019 03:36
Show Gist options
  • Save marianocodes/d46e230b3e1f4df875ded951e10d9e73 to your computer and use it in GitHub Desktop.
Save marianocodes/d46e230b3e1f4df875ded951e10d9e73 to your computer and use it in GitHub Desktop.
Convector with NestJS - curls
# Add a new person
curl -H "Content-Type: application/json" --request POST --data '{ "id":"1-00200-2222-1", "name":"John Doe" }' http://localhost:8000/person
# Add a new attribute
curl -H "Content-Type: application/json" --request POST --data '{ "attributeId":"birth-year", "content": 1993 }' http://localhost:8000/person/1-00200-2222-1/add-attribute
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment