Skip to content

Files

Latest commit

Aug 28, 2015
bcca314 · Aug 28, 2015

History

History
24 lines (19 loc) · 659 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 659 Bytes

API Demo

This is a simple demo of how to interact with an API.

The following routes are available:

Method Route Data Expected Response
GET /api/animals None List of animals
GET /api/animals/*id* None Specific animal
POST /api/animals JSON animal success status
PUT /api/animals/*id* JSON animal success status
DELETE /api/animals/*id* None success status

JSON animal form:

{
  "type": "human",
  "name": "Parker",
  "age": 23
}