Class BooksController
java.lang.Object
edu.ucsb.cs156.example.controllers.ApiController
edu.ucsb.cs156.example.controllers.BooksController
-
Constructor Summary
-
Method Summary
Methods inherited from class edu.ucsb.cs156.example.controllers.ApiController
genericMessage, getCurrentUser, handleGenericException
-
Constructor Details
-
BooksController
public BooksController()
-
-
Method Details
-
allBooks
-
getById
-
postBook
@PreAuthorize("hasRole(\'ROLE_ADMIN\')") @PostMapping("/post") public Book postBook(@RequestParam String title, @RequestParam String author, @RequestParam String description) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deleteBook
-
updateBook
-