Class UCSBDatesController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.UCSBDatesController
@RequestMapping("/api/ucsbdates")
@RestController
public class UCSBDatesController
extends ApiController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeleteUCSBDate
(Long id) postUCSBDate
(String quarterYYYYQ, String name, LocalDateTime localDateTime) updateUCSBDate
(Long id, @Valid UCSBDate incoming) Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
UCSBDatesController
public UCSBDatesController()
-
-
Method Details
-
allUCSBDates
-
getById
-
postUCSBDate
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public UCSBDate postUCSBDate(@RequestParam String quarterYYYYQ, @RequestParam String name, @RequestParam("localDateTime") @DateTimeFormat(iso=DATE_TIME) LocalDateTime localDateTime) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deleteUCSBDate
-
updateUCSBDate
-