SpringBootLibrary
Loading...
Searching...
No Matches
com.example.restapi.controller.BookController Class Reference

Public Member Functions

List< Book > getAllBooks ()
ResponseEntity< Book > getBookById (@PathVariable Long id)
ResponseEntity< Book > createBook (@RequestBody Book book)
ResponseEntity< Book > updateBook (@PathVariable Long id, @RequestBody Book bookDetails)
ResponseEntity< Void > deleteBook (@PathVariable Long id)

Detailed Description

Definition at line 17 of file BookController.java.

Member Function Documentation

◆ createBook()

ResponseEntity< Book > com.example.restapi.controller.BookController.createBook ( @RequestBody Book book)

Definition at line 34 of file BookController.java.

◆ deleteBook()

ResponseEntity< Void > com.example.restapi.controller.BookController.deleteBook ( @PathVariable Long id)

Definition at line 56 of file BookController.java.

◆ getAllBooks()

List< Book > com.example.restapi.controller.BookController.getAllBooks ( )

Definition at line 23 of file BookController.java.

◆ getBookById()

ResponseEntity< Book > com.example.restapi.controller.BookController.getBookById ( @PathVariable Long id)

Definition at line 28 of file BookController.java.

◆ updateBook()

ResponseEntity< Book > com.example.restapi.controller.BookController.updateBook ( @PathVariable Long id,
@RequestBody Book bookDetails )

Definition at line 46 of file BookController.java.


The documentation for this class was generated from the following file: