Overview:
pizza-service is a simple Django service that allows users to place, edit, and delete pizza orders into a PostgreSQL database. The service is developed in Windows 10 using PyCharm as the IDE. This service requires Python, Pip, and Python Virtual Environment as prerequisites.
Features:
- Add a customer: Users can add a customer to the database by making a POST request to http://127.0.0.1:8000/add-customer/.
- Add a pizza: Users can add a pizza to the database by making a POST request to http://127.0.0.1:8000/add-pizza/.
- Add an order: Users can add an order by making a POST request to http://127.0.0.1:8000/add-order/. Before adding an order for a new customer, the customer and pizza need to be added first.
- Update an order: Users can update an order by making a PUT request to http://127.0.0.1:8000/order-details/{order_id}/.
- Delete an order: Users can delete an order by making a DELETE request to http://127.0.0.1:8000/order-details/{order_id}/.
- Place an order: Users can place an order by making a GET request to http://127.0.0.1:8000/place-order/.
- List of orders: Users can get a list of orders by making a GET request to http://127.0.0.1:8000/orders/.
- Search for an order: Users can search for an order by making a GET request to http://127.0.0.1:8000/search/. (Currently only searching by order ID is supported)
Summary:
pizza-service is a Django service that allows users to manage pizza orders through a user-friendly API. Users can add customers, pizzas, and orders to the database, as well as update and delete existing orders. The service also includes additional functionalities such as placing orders, listing orders, searching for orders, and running tests.