Skip to content

A simple REST API uisng Express and MongoDB for strengthening my skills as part of my Project Based Learning Process

Notifications You must be signed in to change notification settings

vishnu9865/Simple-Rest-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-Rest-API

A simple REST API uisng Express and MongoDB for strengthening my skills as part of my Project Based Learning Process.

  • The project utilizes express Router to abstract the route handler for the customer model away from the server js file.
  • I have also tried to use seperate folder for storing the model file of customer.

Below is the API End Point Table for your reference.

Action HTTP method End Point Response Description
CREATE a customer POST /api/customer 201 (CREATED) Save a new customer into database.
READ all customers GET /api/customer 200 (OK) fetch all customers from database.
READ a customer GET /api/customer/{id} 200(OK) Fetch specific customer from database.
UPDATE a customer PATCH /api/customer/{id} 200 (OK) Update existing user from database.
DELETE a customer DELETE /api/customer/{id} 204(NO CONTENT) Delete a specific customer from database.

About

A simple REST API uisng Express and MongoDB for strengthening my skills as part of my Project Based Learning Process

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published