Class UCSBDiningMenuItemsController

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

@RestController @RequestMapping("/api/diningcommons") public class UCSBDiningMenuItemsController extends ApiController
  • Constructor Details

    • UCSBDiningMenuItemsController

      public UCSBDiningMenuItemsController()
  • Method Details

    • get_menu_items

      @PreAuthorize("hasRole(\'ROLE_USER\')") @GetMapping(value="/{date-time}/{dining-commons-code}/{meal-code}", produces="application/json") public org.springframework.http.ResponseEntity<List<MenuItem>> get_menu_items(@PathVariable("date-time") String datetime, @PathVariable("dining-commons-code") String diningcommoncode, @PathVariable("meal-code") String mealcode) throws Exception
      Throws:
      Exception