Skip to content

Instantly share code, notes, and snippets.

@jerzyn
Created July 1, 2015 14:15
Show Gist options
  • Save jerzyn/e5e2ba2c82670699202a to your computer and use it in GitHub Desktop.
Save jerzyn/e5e2ba2c82670699202a to your computer and use it in GitHub Desktop.
cURL calls to petstore
curl -X GET "http:example.com/api/pets?tags=TAGS&limit=LIMIT" -H "user_key: {user_key}"
curl -X POST "http:example.com/api/pets" -H "user_key: {user_key}" -d "{ "name": "NAME", "tag": "TAG", "id": ID }"
curl -X GET "http:example.com/api/pets/{id}" -H "user_key: {user_key}"
curl -X DELETE "http:example.com/api/pets/{id}" -H "user_key: {user_key}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment