Delivering successful API integrations
summary
Claims that designing the API spec first cuts integration failures and demonstrates it end-to-end: a 5-endpoint OpenAPI 3.0 YAML drives local and cloud mocks with Prism and microapis.io, generates Pydantic models via datamodel-code-generator, implements the server in FastAPI and validates it with the "thread" test runner. Initial run shows 5 tests passing and 3 failing; adding thread hooks to reuse created resource ids makes all 8 tests pass. CI runs tests on Travis and deploys the validated app to Heroku.
AI-written summary · about
chapters (7)
- 0:00API integrations intro
- 2:41Why API integrations are tricky
- 7:14Documentation-driven development
- 12:48Building API with FastAPI
- 19:54Testing APIs threats and hooks
- 24:30Automate tests CI deploy Heroku
- 27:24Summary
related talks
27m"Building Elegant API Contracts: From Zero to Hero"
35mAPI-First! Contract-First! Make API development great again!
59mDriving better outcomes through API first development
25mThe Life Changing Magic of Becoming API First
47mContract-Driven API Development with OpenAPI Specification
32mProject API Forge: Streamlining Dev-First API Lifecycle Management.
05mAPI-First Development: Future-Ready Systems
26mTips and tricks for writing API Tests
