Class DiningCommonsController
java.lang.Object
edu.ucsb.cs156.dining.controllers.DiningCommonsController
@RestController
@RequestMapping("/api/diningcommons")
public class DiningCommonsController
extends Object
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<String> org.springframework.http.ResponseEntity
<String> getMealsByDateTimeAndDiningCommonsCode
(LocalDateTime date_time, String dining_commons_code) org.springframework.http.ResponseEntity
<List<DiningCommonsController.MenuItemDTO>> getMenuItemsByMealDateTimeAndDiningCommonsCode
(LocalDateTime dateTime, String diningCommonsCode, String meal)
-
Constructor Details
-
DiningCommonsController
public DiningCommonsController()
-
-
Method Details
-
getAllDiningCommons
@GetMapping(value="/all", produces="application/json") public org.springframework.http.ResponseEntity<String> getAllDiningCommons() throws Exception- Throws:
Exception
-
getMealsByDateTimeAndDiningCommonsCode
@GetMapping(value="/{date-time}/{dining-commons-code}", produces="application/json") public org.springframework.http.ResponseEntity<String> getMealsByDateTimeAndDiningCommonsCode(@PathVariable("date-time") LocalDateTime date_time, @PathVariable("dining-commons-code") String dining_commons_code) throws Exception - Throws:
Exception
-
getMenuItemsByMealDateTimeAndDiningCommonsCode
@GetMapping(value="/{date-time}/{dining-commons-code}/{meal}", produces="application/json") public org.springframework.http.ResponseEntity<List<DiningCommonsController.MenuItemDTO>> getMenuItemsByMealDateTimeAndDiningCommonsCode(@PathVariable("date-time") LocalDateTime dateTime, @PathVariable("dining-commons-code") String diningCommonsCode, @PathVariable("meal") String meal) throws Exception - Throws:
Exception
-