Story: We have a website to serve fast food. We only accept pizza orders. Each pizza consists of 3 toppings. Customers can choose several options for each of those three toppings. The toppings consist of sauce which can be [“chilli”, “medium”, “normal”], and vegetable which can be one of [“onion”, “pepper”, “mushroom”, “spinach”], the last topping is the meat which can be one of these options [“null”, “beef”, “pepperoni”]
Q1. (50 points) Our job is to develop a restful API for fast food pizza orders. (All the CRUD functions) It is your responsibility to code the schema for mongoose and figure out the required schema.
● The URL: localhost:8889/pizza/:id
● Your API should not accept other values for these toppings. Q2. (50 points) Apart from that, you will develop a webpage to show a list of all unfinished pizzas and an estimation of how much time it takes to handle all current pizzas. Assume each pizza starts to be prepared from the time it is added to the database, and it takes 1 min for each pizza to get ready.
● The URL: localhost:8889/pizzaqueue
● The web page should show us a list of each pizza gradient-like ○ Example:
▪ (chilli sauce + mushroom vegetable + beef meat)
▪ (chilli sauce + pepper vegetable) (note: there is no meat because in this case, the customer choose null for meat)
● I do not remember to mention the remaining processing time on that page.