Skip to content

Magnus Nymo#38

Open
magnus195 wants to merge 5 commits intoboolean-uk:mainfrom
magnus195:main
Open

Magnus Nymo#38
magnus195 wants to merge 5 commits intoboolean-uk:mainfrom
magnus195:main

Conversation

@magnus195
Copy link

@magnus195 magnus195 commented Jan 27, 2025

Core

  • Write all endpoints in the PizzaShopApi.cs
  • Use your initiative to create relevant endpoints such as GetOrders, GetOrdersByCustomerId, GetPizzas etc..
  • Use Dependency Injection to instance the DbContext Repository
  • Inject the IRepository into the EndPoints in the PizzaShopApi
  • An order consists of 1 customer ordering 1 pizza.
  • Seed some data for the orders. Dave likes a Cheese & Pineapple pizza and Nigel likes Vegan ones.
  • Include yourself as a customer and your favourite Pizza.

Extension (choose at least two)

  • Add extra toppings to Pizzas and allow customers to add toppings to their order. Add a new table for Toppings and a new table for OrderToppings. Add any endpoints you think necessary to add toppings.
  • Assume that Pizzas take 3 minutes to prepare and 12 minutes to cook in the oven. Modify your code so your customers see at what stage their order is and add an endpoint so the delivery drivers app can set the order as Delivered
  • The Pizza Shop can only cook 4 pizzas at a time and the delivery driver is allocated 10 minutes to deliver one pizza at a time. Add an estimated delivery time to the Order!
  • Add a new table for DeliveryDrivers and add an endpoint to assign a driver to an order. Add a new endpoint to get all orders for a driver.
  • Add the ability for the Pizza shop to sell other products on the Menu. e.g. Burgers, Fries, Drinks. Update any existing code and add any endpoints you think necessary to add products these to an order.

@magnus195 magnus195 marked this pull request as ready for review January 28, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant