
How to Build a REST API With Play Framework in Java
Build a small JSON REST API in Play with routes, controllers that read and return JSON, validation and consistent error responses.
Controllers, request binding, validation and exception handlers for web apps built on the servlet stack.

Build a small JSON REST API in Play with routes, controllers that read and return JSON, validation and consistent error responses.

Build a Micronaut REST API backed by PostgreSQL with Micronaut Data JDBC, repositories generated at compile time, pagination and Flyway migrations.

Write a REST controller in Spring MVC with request mappings, status codes, validation and a test, using a small orders resource as the example.

Build a REST API in Quarkus with the quarkus-rest and quarkus-rest-jackson extensions: resources, DTO records, status codes, exception mappers and a test.

Write the OpenAPI document first, then generate Java interfaces and models from it, implement them, and fail the build when code and contract drift apart.

Validate input in Quarkus with Hibernate Validator: constraints on request records, Valid on resources, method parameters and a custom error response.

API versioning strategies compared: URL path, header, media type and query versions, the cost of each and how to avoid new versions.

Fix Jackson's Cannot construct instance error by giving the class a creator Jackson can call, using a record, or choosing a concrete type for interfaces.

Build a small REST API with Spring Boot 4 and JDK 25: generate the project, write a controller, add an in memory service, validate input and run the tests.

Use Protobuf and gRPC between Java services: define a proto file, generate code, write a server and client, set deadlines and evolve messages.

Stop the StackOverflowError that Jackson raises when entities reference each other, by returning DTOs, or by breaking the cycle with Jackson annotations.

Debug Java HTTP client timeouts: separate connect, read and pool wait, check DNS and TLS, set explicit limits and log what each phase did.
We send one email when a new post is published. No spam.