Design an API for a point of sale (POS) system
Project requirements:
- Retrieve a menu of all the items in the POS. An item can have description, a price, a quantity and an ID
- Add a new item to the menu
- Update an item by ID
- Delete an item by ID
- Create a new order. An order should contain:
- a list of item IDs, with a quantity for each item
- a payment amount
- an order note
- Creating a successful order should return the order ID
Open a terminal and follow the steps bellow
-
Clone the repo
https://github.com/zamu5/POS-API.git -
Move inside the project
cd POS-API -
Install requirements
make config -
Run server
make run
- Open the Postman app
- Import the postman collection in the Postman app
Create an item:
To create an Item use the 'Create Item' endpoint inside the API/Item in postman collection
Python 3 - backend
- Sergio Zamudio - zamu5