|
SpringBootLibrary
|
Public Member Functions | |
| LibraryController (UserController userController, BookController bookController, BorrowingController borrowingController) | |
| ResponseEntity<?> | registerUser (@RequestBody User user) |
| ResponseEntity<?> | loginUser (@RequestBody User user, HttpSession session) |
| ResponseEntity<?> | getUserSession (HttpSession session) |
| ResponseEntity< List< Book > > | getBooks () |
| ResponseEntity< Book > | addBook (@RequestBody Book book) |
| ResponseEntity< String > | borrowBook (@PathVariable Long bookId, @PathVariable Long userId) |
| ResponseEntity< String > | returnBook (@PathVariable Long bookId) |
| ResponseEntity< User > | getUserProfile (@PathVariable Long userId) |
| ResponseEntity< User > | getUserProfileByUsername (@PathVariable String username) |
| ResponseEntity< List< Map< String, Object > > > | getBorrowedBooksByUser (@PathVariable String username) |
| ResponseEntity< Void > | deleteBorrowing (@PathVariable Long bookId, @PathVariable Long userId) |
Definition at line 20 of file LibraryController.java.
| com.example.restapi.controller.LibraryController.LibraryController | ( | UserController | userController, |
| BookController | bookController, | ||
| BorrowingController | borrowingController ) |
Definition at line 27 of file LibraryController.java.
| ResponseEntity< Book > com.example.restapi.controller.LibraryController.addBook | ( | @RequestBody Book | book | ) |
Definition at line 64 of file LibraryController.java.
| ResponseEntity< String > com.example.restapi.controller.LibraryController.borrowBook | ( | @PathVariable Long | bookId, |
| @PathVariable Long | userId ) |
Definition at line 71 of file LibraryController.java.
| ResponseEntity< Void > com.example.restapi.controller.LibraryController.deleteBorrowing | ( | @PathVariable Long | bookId, |
| @PathVariable Long | userId ) |
Definition at line 107 of file LibraryController.java.
| ResponseEntity< List< Book > > com.example.restapi.controller.LibraryController.getBooks | ( | ) |
Definition at line 56 of file LibraryController.java.
| ResponseEntity< List< Map< String, Object > > > com.example.restapi.controller.LibraryController.getBorrowedBooksByUser | ( | @PathVariable String | username | ) |
Definition at line 102 of file LibraryController.java.
| ResponseEntity< User > com.example.restapi.controller.LibraryController.getUserProfile | ( | @PathVariable Long | userId | ) |
Definition at line 83 of file LibraryController.java.
| ResponseEntity< User > com.example.restapi.controller.LibraryController.getUserProfileByUsername | ( | @PathVariable String | username | ) |
Definition at line 89 of file LibraryController.java.
| ResponseEntity<?> com.example.restapi.controller.LibraryController.getUserSession | ( | HttpSession | session | ) |
Definition at line 50 of file LibraryController.java.
| ResponseEntity<?> com.example.restapi.controller.LibraryController.loginUser | ( | @RequestBody User | user, |
| HttpSession | session ) |
Definition at line 42 of file LibraryController.java.
| ResponseEntity<?> com.example.restapi.controller.LibraryController.registerUser | ( | @RequestBody User | user | ) |
Definition at line 37 of file LibraryController.java.
| ResponseEntity< String > com.example.restapi.controller.LibraryController.returnBook | ( | @PathVariable Long | bookId | ) |
Definition at line 77 of file LibraryController.java.