Skip to content

sandhyasrini/express-learning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Expressjs CRUD API

Steps to run

  1. npm install
  2. npm start

API Reference

Route HTTP Verb Description
/api/bears GET Get all the bears
/api/bears POST Create a new bear
/api/bears/:id PUT Modify a bear
/api/bears/:id DELETE Delete a bear

Use POSTMAN to test the API

For example, to test GET route, send a GET request to http://localhost:3000/api/bears

NOTE

First send a POST request with following json as a body parameter, otherwise it'll throw an error

{ "bear": { "id": "1", "name": "teddy" } }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%