Class HelpController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.HelpController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionallHelp()
deleteHelp
(Long id) postHelp
(String requesterEmail, String teamId, String tableOrBreakoutRoom, LocalDateTime requestTime, String explanation, boolean solved) updateHelp
(Long id, @Valid Help incoming) Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
HelpController
public HelpController()
-
-
Method Details
-
allHelp
-
postHelp
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public Help postHelp(@RequestParam String requesterEmail, @RequestParam String teamId, @RequestParam String tableOrBreakoutRoom, @RequestParam("requestTime") @DateTimeFormat(iso=DATE_TIME) LocalDateTime requestTime, @RequestParam String explanation, @RequestParam boolean solved) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
getById
-
deleteHelp
-
updateHelp
-