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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<String> getCommons
(OffsetDateTime dateTime) org.springframework.http.ResponseEntity
<String> getDays()
org.springframework.http.ResponseEntity
<String> getMeals
(OffsetDateTime dateTime, String diningCommonsCode) Methods inherited from class edu.ucsb.cs156.dining.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
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
-