You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
6 years ago | |
|---|---|---|
| .gitignore | 6 years ago | |
| README.md | 6 years ago | |
| package-lock.json | 6 years ago | |
| package.json | 6 years ago | |
| server.js | 6 years ago | |
README.md
Petstore API
List all pets
curl http://localhost:8080/pets/
Get a pet
curl http://localhost:8080/pets/1
curl http://localhost:8080/pets/2
Create a pet
curl -XPOST http://localhost:8080/pets/ -H 'Content-Type: application/json' -d '{"name":"Raspoutine","tag":"dog"}'
Update a pet
curl -XPUT http://localhost:8080/pets/3 -H 'Content-Type: application/json' -d '{"id":3,"name":"Daisy","tag":"turtle"}'
Delete a pet
curl -XDELETE http://localhost:8080/pets/3