real projects · Cohort hybrid
Contract-First APIs with OpenAPI + Spring
Design YAML first, generate interfaces, and keep consumer-driven tests honest.
- Duration
- 4 weeks · 46 mentor hours
- Schedule
- Mixed
- Level
- Intermediate
- Price
- 13,200 THB (informational)
OpenAPI 3.1 · SpringDoc · Spring Cloud Contract
Description
Teams model a procurement API, generate Spring interfaces with openapi-generator, and align provider/consumer tests using Spring Cloud Contract without drifting schemas.
What arrives in your repo
- OpenAPI lint rules in CI
- Generator customization hooks
- DTO mapping guardrails
- Breaking change detection playbook
- MockMvc vs WebTestClient guidance
- Error payload consistency review
- Peer review rubric for API reviews
Outcomes we expect you to evidence
- Publish versioned OpenAPI with changelog
- Wire consumer tests that fail on silent breaks
- Facilitate API review with evidence
Responsible instructor
Benja Ruang
API guild lead for B2B marketplaces.
FAQ
Not covered — REST + JSON only.
Out of scope — internal enterprise style contracts.
All tooling is OSS; no paid licenses required.
Experience notes
“Contract-First APIs changelog template stopped our silent field renames.”
“OpenAPI lint stage noisy at first — mentors tuned rules with us live.”