Class DiningMenuAPIController

java.lang.Object
edu.ucsb.cs156.dining.controllers.ApiController
edu.ucsb.cs156.dining.controllers.DiningMenuAPIController

@RestController @RequestMapping("/api/dining") public class DiningMenuAPIController extends ApiController
  • Constructor Details

    • DiningMenuAPIController

      public DiningMenuAPIController()
  • Method Details

    • getDays

      @GetMapping(value="/getDays", produces="application/json") public org.springframework.http.ResponseEntity<String> getDays() throws Exception
      Throws:
      Exception
    • getCommons

      @GetMapping(value="/getCommons", produces="application/json") public org.springframework.http.ResponseEntity<String> getCommons(@RequestParam OffsetDateTime dateTime) throws Exception
      Throws:
      Exception
    • getMeals

      @GetMapping(value="/getMeals", produces="application/json") public org.springframework.http.ResponseEntity<String> getMeals(@RequestParam OffsetDateTime dateTime, @RequestParam String diningCommonsCode) throws Exception
      Throws:
      Exception