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
- REST API & RESTful Web Services
- HTTP Methods
- HTTP Status Codes
- Building REST APIs with Spring Boot
- Request Mapping Annotations
- Reading Request Data
- ResponseEntity
- DTOs: Request and Response
- API Design - Pagination, Filtering & Versioning
- JSON - Structure & Parsing
- REST API - Save & Update Operation
- REST API - Get & Delete Operation
- Spring Boot - Interceptor