Composable API first design for REST with OpenAPI
summary
Shows a concrete pattern: five reusable components — update component, create component, header component, resource component and audit component — that compose OpenAPI schemas so a single property definition drives post/patch/list/get responses. Demonstrates using external JSON refs, a simple Node merge to compile multi-file specs into one file (needed for AWS API Gateway), and testing by validating max/min JSON examples to catch breaking changes. Claims header holds ~80–90% of listable data and aims to make codegen reliable.
AI-written summary · about
chapters (14)
- 0:00Introduction and welcome
- 7:48API first design basics
- 10:59OpenAPI specification overview
- 13:51REST operations and CRUDDLE
- 19:16Composable components introduction
- 23:09Create and update components
- 26:20Handling sub-resources
- 30:30Header component explained
- 33:43Resource component details
- 37:36Audit components for tracking
- 39:03Managing large schemas
- 41:33Testing API specifications
- 43:17Summary and key takeaways
- 44:40Resources and Q&A
