This system is a REST API without frontend, which allows the user to choose the best restaurant based on a vote.
Technology stack: Java 15/Hibernate/Spring-Boot/H2 Database.
• Admin can input a restaurant and it's lunch menu of the day
POST /rest/restaurant/admin/add
• Menu changes each day (admins do the updates)
POST /rest/restaurant/admin/add/setmenu
• Users can vote on which restaurant they want to have lunch at (Only one vote counted per user)
POST /rest/restaurant/{id}
curl -s -X POST -d '{"name": "first","dishes":[{"name": "breakfast","price":100},{"name":"dinner","price": 200}]}' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/rest/restaurant/admin/add --user [email protected]:p
curl -s -X POST -d '[{"name": "borscht","price": 100,"restaurant":{"id":1005}},{"name": "pancakes","price": 1000,"restaurant":{"id":1005}}]' -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/rest/restaurant/admin/setmenu --user [email protected]:p
curl -s -X POST -d -H 'Content-Type:application/json;charset=UTF-8' http://localhost:8080/rest/restaurant/1005 --user [email protected]:p