This readme provides an overview of the backend endpoints defined in the code. The endpoints are defined using the Express.js framework for Node.js.
Here are the endpoints defined in the code, along with a brief description of their functionality:
-
GET /getOrders
This endpoint returns a list of all orders in the system. -
GET /inventory
This endpoint returns a list of all items in the inventory. -
GET /customerDetails
This endpoint returns a list of all customers in the system. -
GET /inventory/:inventoryType
This endpoint returns a list of all items of a specific type in the inventory. The type is specified as a path parameter in the URL. -
POST /createOrders
This endpoint creates a new order in the system. The order details are passed in the request body in JSON format. -
POST /createCustomer
This endpoint creates a new customer in the system. The customer details are passed in the request body in JSON format. -
POST /createInventory
This endpoint creates a new item in the inventory. The item details are passed in the request body in JSON format. -
PUT /:itemName
This endpoint updates the available quantity of an item in the inventory. The item name is specified as a path parameter in the URL, and the updated quantity is passed in the request body in JSON format.
These endpoints provide the core functionality of the backend system, allowing you to manage orders, customers, and inventory. Use the endpoint descriptions and URLs to interact with the system and build your frontend.