Course
OpenAPI & Contract-First APIs
Design APIs as durable contracts — model behavior before code, generate the boring parts honestly, test compatibility continuously, and turn documentation into an operational asset.
Reviews
Enrolled members can rate this course.
No reviews yet.
Designing the Contract
Model resources, behavior, validation, and failure semantics in OpenAPI before implementation hardens the wrong decisions.
- 01Contract-First Thinking: The API Is the Product BoundaryTreat the OpenAPI document as the negotiated boundary between teams, not as documentation generated after the implementation has already made the decisions.23mOpen
- 02Modeling OpenAPI Schemas That Survive Real ClientsDesign precise schemas for identifiers, enums, money, time, validation errors, and polymorphism so generated clients remain useful instead of merely compileable.27mOpen
- 03Errors, Validation, and Idempotency as Contract BehaviorSpecify what failure means, how clients recover, and why retries must be safe before consumers discover the gaps in production.25mOpen
Generation and Verification
Use code generation, contract tests, and consumer-driven verification without mistaking generated code for correctness.
- 01Generating Clients and Servers Without Surrendering DesignUse OpenAPI generators for types, validation, routing skeletons, and clients while keeping domain logic and lifecycle ownership outside generated code.24mOpen
- 02Contract Testing in CI: Prove the Server Keeps the PromiseValidate implementation responses against the spec, exercise edge cases statefully, and make contract drift a build failure rather than a support ticket.26mOpen
- 03Consumer-Driven Contracts Without Letting Consumers Design the APICapture real consumer expectations, run provider verification, and use consumer feedback as evidence while preserving a coherent provider-owned contract.25mOpen
Evolution and Documentation
Version deliberately, deprecate without breaking trust, and make the specification the living operational manual.
- 01Versioning Through the Spec: Compatibility Is the DefaultClassify additive and breaking changes honestly, choose a versioning strategy, and use compatibility checks before consumers pay for accidental drift.27mOpen
- 02Deprecation, Migration, and the Long Tail of ConsumersRetire API behavior with measurable usage, explicit timelines, migration tooling, and empathy for clients you do not control.24mOpen
- 03Documentation Leverage: Turn the Spec into the Operating ManualGenerate reference documentation, examples, changelogs, mocks, and support playbooks from the same contract so every audience sees the same truth.22mOpen