Building Web APIs
Ship a REST API the right way.
Turn BookVault into a real HTTP API. The Spring MVC request pipeline, REST controllers, request and response bodies, validation, clean error responses with ProblemDetail, OpenAPI docs, and calling other services.
Lessons in this stage
- 01
Spring MVC & the Request Flow
IntermediateThe DispatcherServlet front controller and the journey of a request from HTTP arrival to JSON response.
16 min - 02
REST Controllers & Mapping
Intermediate@RestController, mapping URLs and HTTP methods, path variables and query params, and ResponseEntity.
18 min - 03
Request & Response Bodies
IntermediateDTOs and records, @RequestBody, JSON (de)serialization with Jackson, and content negotiation.
16 min - 04
Validating Input
IntermediateBean Validation with @Valid and constraint annotations, and turning failures into helpful responses.
16 min - 05
Exception Handling & ProblemDetail
Intermediate@ExceptionHandler, @ControllerAdvice, and standard RFC 9457 ProblemDetail error responses.
16 min - 06
Documenting with OpenAPI
BeginnerGenerate live, interactive API docs with springdoc-openapi and Swagger UI - for free.
12 min - 07
Calling Other APIs
IntermediateConsuming HTTP services with the modern RestClient (and when to reach for WebClient).
14 min
Ready to test yourself?
Take the stage assessment to check your mastery. Pass it to earn a stage badge toward your Javaneer certificate.