Skip to content

byu-mechatronics/api-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%