Skip to main content

Mini Project: Book Catalogue REST API

Learn Mini Project: Book Catalogue REST API (REST API Development, Spring Boot) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Mini Real-Time Project: Book Catalogue REST API Problem A bookstore needs a REST API to list, create, read, update and delete books, answering with correct HTTP status codes and a Location header after creation. Requirements Create a @RestController with GET, POST, PUT and DELETE. Return 201 with a Location header on create, 204 on delete, 404 for a missing book. Send and receive JSON. Exercise every endpoint without starting a server. Concepts Used @RestController @RequestMapping / @GetMapping / @PostMapping ResponseEntity HTTP status codes MockMvc Maven Dependencies spring-boot-starter-web...

More lessons in REST API Development