Assumptions:
- Deals have either Open AND Close or Start AND End
- When deals have not start time or end time, then the deal is active all the time while the resturant is open
- on root folder
- run
mvn spring-boot:run - run curl commands:
- for Task 1:
a. run
curl http://localhost:8080\?timeOfDay=<timeOfDeal>ai. Where is in the format of h:mma. Hours : Minutes am/pm (without the spaces) b. eg:curl http://localhost:8080\?timeOfDay=10:31am - For Task 2:
a run
curl http://localhost:8080\/getPeakTimeDeals