Class DiningCommonsController

java.lang.Object
edu.ucsb.cs156.dining.controllers.DiningCommonsController

@RestController @RequestMapping("/api/diningcommons") public class DiningCommonsController extends Object
  • 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