Backend API endpoints to server the customers, orders and product details.
- clone the repo - Git clone https://github.com/ShankarRaknahs/fbasket-server.git
- cd fbasket-server
- npm i
- npm start
-
GET Customers sample url - http://localhost:4000/v1/customers/12345
-
GET Products sample url - http://localhost:4000/v1/products
-
GET Orders sample url - http://localhost:4000/v1/orders
-
PATCH Order sample url - http://localhost:4000/v1/orders/1001
Req.body {status: "Done"}
-
POST products sample url - http://localhost:4000/v1/products/46123425 Req.body { "product_id": "46123425", "name": "Ipad Test Pro", "quantity": "3", "price": "100" }
-
GET Sold Products sample url - http://localhost:4000/v1/products/sold
.sample.env is added for reference