Skip to content

Backend API endpoints to server the customers, orders and product details.

Notifications You must be signed in to change notification settings

ShankarRaknahs/fbasket-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fbasket-server

Backend API endpoints to server the customers, orders and product details.

Steps to start the server:

  1. clone the repo - Git clone https://github.com/ShankarRaknahs/fbasket-server.git
  2. cd fbasket-server
  3. npm i
  4. npm start

API details:

  1. GET Customers sample url - http://localhost:4000/v1/customers/12345

  2. GET Products sample url - http://localhost:4000/v1/products

  3. GET Orders sample url - http://localhost:4000/v1/orders

  4. PATCH Order sample url - http://localhost:4000/v1/orders/1001

Req.body {status: "Done"}

  1. POST products sample url - http://localhost:4000/v1/products/46123425 Req.body { "product_id": "46123425", "name": "Ipad Test Pro", "quantity": "3", "price": "100" }

  2. GET Sold Products sample url - http://localhost:4000/v1/products/sold

Database - MongoDB credentials needs to be provided as environment variable

.sample.env is added for reference

Please reach out to shankarsachin2u@gmail.com for any queries.

About

Backend API endpoints to server the customers, orders and product details.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published