-
Notifications
You must be signed in to change notification settings - Fork 0
API Endpoints
Dylan edited this page Sep 17, 2019
·
3 revisions
- / Renders the main page. Does NOT return JSON
- /checks returns JSON of all 'checks' entries
- /checks/paid returns JSON of all paid checks
- /checks/unpaid returns JSON of all unpaid checks
- /checks/:id returns single check by ID
- /checks/seat creates a new 'check' or a new gues seating, returns json with ID data
- /checks/:id Updates check by ID
- /checks/delete/:id
- /menu returns JSON of all menu entries
- /menu/:section returns JSON of all menu entries by section / category
- /menu/add Creates a new menu entry, returns JSON with ID
- /menu/:id Deletes a menu entry by ID
- /order returns JSON of all order entries
- /order/paid returns JSON of all paid checks
- /order/unpaid returns JSON of all unpaid checks
- /order/:id returns single check by ID / category
- /order/:id Updates check by ID
- /servers returns JSON of all waitstaff entries
- /servers/:code Validates the user access code
- /servers/add Creates a new waitstaff/server entry, returns JSON with ID
- /inventory returns JSON of all inventory entries
- /inventory/categories returns a JSON of all the unique categories in the inventory
- /inventory/add Creates a new inventory entry, returns JSON with the ID and other information
- /inventory/:id Updates the inventory with the given id. The body of the request must have:
name,unitOfMeasurement, andcategory
- /inventory/delete/:id Removes an inventory item with the given id