Created
June 3, 2019 03:36
-
-
Save marianocodes/d46e230b3e1f4df875ded951e10d9e73 to your computer and use it in GitHub Desktop.
Convector with NestJS - curls
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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