Design a data model of the menu and/or the dishes.A dish should contain:
- name
- short description
- price
- category (starter, main course, dessert, beverage, ...)
- when it is available based on time of day (breakfast, dinner, lunch, weekdays/- ends)
- it should be able to deactivate a dish, for example when it’s sold out
- how long the guest approximately has to wait for the dish after they order
Create a REST API
- Use .Net Core C# as application language
- Use MongoDB as data modeling and store
- Read menu of a restaurant
- CRUD restaurant
- CRUD dish
- Data modeling steps - please read the data modeling document
- local run commands
- First build dishes api image:
docker build -t dishes -f docker/dishes.Dockerfile .
- Run
docker-compose
docker-compose up
- Use browser open
localhost:5000/swagger
or use Postman import Postman Collection in asset folder - First create a restaurant. After that query menu with the returned restaurant id, in this moment the dishes array is still empty
- Create dishes which belongs to the restaurant
- Then query menu with the restaurant id, the restaurant information and dishes information will be included.