Package cvut.fel.controller

# Class LibraryController

java.lang.Object
cvut.fel.controller.LibraryController

    @RestController
    public class LibraryController
    extends java.lang.Object

- ## Constructor Summary

  Constructors
  Constructor | Description
  --- | ---
  `LibraryController​(LibraryService libraryService, DTOMapper mapper)` |

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `org.springframework.http.ResponseEntity<java.lang.Object>` | `addBookToLibrary​(java.lang.Long libraryId, java.lang.Long bookId)` |
  `LibraryDTO` | `getLibraryById​(java.lang.Long libraryId)` |

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LibraryController

    @Autowired public LibraryController​(LibraryService libraryService, DTOMapper mapper)

- ## Method Details

  - ### getLibraryById

    @GetMapping("/library/{libraryId}") public LibraryDTO getLibraryById​(@PathVariable java.lang.Long libraryId)

  - ### addBookToLibrary

    @PutMapping("/library/{libraryId}/add/{bookId}") public org.springframework.http.ResponseEntity<java.lang.Object> addBookToLibrary​(@PathVariable java.lang.Long libraryId, @PathVariable java.lang.Long bookId)