What problem does it solve?
It eliminates the mismatch and rework that happen when API contracts and backend implementations drift apart by making your OpenAPI YAML the source of truth for controllers and DTOs.
Core Features & Use Cases
- OpenAPI-first contract workflow: Author paths, schemas, and operationIds in
src/main/resources/openapi/api.yaml and use that spec to drive implementation.
- Spec-driven code generation: Generate Spring Boot server interfaces and model types from the spec, then implement the generated interfaces in your own controllers.
- Static SwaggerUI documentation: Serve Swagger UI from the static spec file so your documentation reflects the contract you wrote.
- Use Case: You define endpoints like
POST /orders and schema objects like CreateOrderRequest and OrderResponse, regenerate code, implement the generated *Api interface, and validate client/server expectations against the same contract.
Quick Start
Indent and edit your API contract in src/main/resources/openapi/api.yaml, then run compile to regenerate the interfaces and models and implement the generated *Api methods.