- Run "docker-compose up" in folder: COMP3122-project
- Test by opening a new terminal and curling the endpoints e.g. "curl localhost:20080/menu/menus"
Here is all our API endpoints:
- Return a JSON object with all attributes of all menu sort by menu_id:
- GET
/menus
- GET
- Return a JSON object with all the menus’ attributes of a store:
- GET
/stores/<store_id>/menus
- GET
- Create or update the entire menu for a specific store:
- POST
/stores/<store_id>/menus
- POST
- Updates an individual item within a menu:
- POST
/stores/<store_id>/menus/dishes/<dishes_id>
- POST
- Delete an individual item within a menu:
- DELETE
/stores/<store_id>/menus/dishes/<dishes_id>
- DELETE
- Return a JSON object with all attributes of all orders:
- GET
/orders
- GET
- Return a JSON object with all the orders’ attributes of a orderID:
- GET
/orders/<order_id>/list
- GET
- Add an order for a specific store:
- POST
/addorder/stores/<storeID>
- POST
- Delete an order for a specific store:
- DELETE
/deleteorder/orders/<OrderID>
- DELETE
- Return a JSON object with all attributes of all store sort by store_id:
- GET
/stores
- GET
- Return a JSON object with all attributes of a specific store:
- GET
/stores/<store_id>
- GET
- Return a JSON object with all attributes of a store with a specific category:
- GET
/stores/category/<categories>
- GET
- Open a new terminal
- Type "cd FatboyEat"
- Type "pytest tests/unit.py"or "python3 -m pytest tests/unit.py"
- Open a new browser.
- Visit localhost:5601
- Login using username
elastic
and passwordchangeme
.
- Open a new browser.
- Visit localhost:9090
- Open a new browser.
- Visit localhost:3000
- Login using username
admin
and passwordadmin
.
- Open a new browser.
- Visit localhost:9093