This API is built so as to enable madam sauces who have a mama put to be able to reach out to her customer anytime instead of them walking down to her shop to make order for meal and also for her to be able to showcase her meal for the day receive order from customer and then delivery the meal to them.
Author email(primary email): chidubempaul91@gmail.com
Author email(secondary email): chidubem.owoh.g20@gmail.com
This page will redirect the user to {{SITE_URL}}/menu
No parameter required
This route manage everything about adding, editing, viewing and deleting food from the database
Link: {{SITE_URL}}/admin/food
Request type: GET
Parameters: None
Link: {{SITE_URL}}/admin/food/:id
Request type: GET
Parameters: None
Link: {{SITE_URL}}/admin/food/
Request type: POST
POST encoding: x-www-form-urlencoded
Post Parameters: {
name: '',
price: '',
description: '',
available: ''
}
Link: {{SITE_URL}}/admin/food/:id
Request type: PUT
PUT encoding: x-www-form-urlencoded
PUT Parameters: {
name: '',
price: '',
description: '',
available: ''
}
Parameter optional but atleast will need one parameter
Link: {{SITE_URL}}/admin/food/:id
Request type: DELETE
Parameters: None
This route manage everything about viewing and updating orders from customer
Link: {{SITE_URL}}/admin/orders
Request type: GET
Parameters: None
Link: {{SITE_URL}}/admin/orders/:id
Request type: GET
Parameters: None
Link: {{SITE_URL}}/admin/approve_order/:id
Request type: GET
Parameters: None
This route manage everything about placing order, viewing order and viewing all food on the food menu
Link: {{SITE_URL}}/menu
Request type: GET
Parameters: None
Link: {{SITE_URL}}/order/:id
Request type: GET
Parameters: None
Link: {{SITE_URL}}/place_order
Request type: POST
POST encoding: x-www-form-urlencoded
Post Parameters: {
name: '',
phone: '',
food_id: '',
location: ''
}