A simple RESTful API for order management, built with Node.js and Express. Allows you to create, list, update, delete, and change the status of orders with unique IDs generated via UUID.
- GET
/order: Retrieve all orders. - POST
/order: Create a new order with a unique ID. - PUT
/order/:id: Update an existing order by ID. - DELETE
/order/:id: Delete an order by ID. - PATCH
/order/:id: Update the status of an order (mark as "ready").
- Node.js
- Express
- UUID (for unique order IDs)
- Clone the repository:
git clone https://github.com/CamilleGS/order-management-api.git 2.Install dependencies:
cd order-management-api
npm install3.Start the server:
npm run devThe server will be running on http://localhost:3000/order.
Use Insomnia or Postman to test the API endpoints.
CamilleGS
.gif)