Because Web API Testing Should Be Easy
summary
Dredd runs API Blueprint (markdown-style) specs as executable contracts, generates docs and mocks, and tests a live Flask server against the spec so implementation must match the design; the demo shows a failing run, then adding an endpoint and using hooks in Python to insert an authentication header so tests pass. The workflow enforces testable documentation as the single source of truth, supports JSON/XML examples, and plugs into CI to catch contract breaks automatically.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker intro
- 1:12About the speaker and APIary
- 2:22What is an API
- 4:09APIs are user interfaces
- 6:48Designing good APIs
- 7:31Test-first API design
- 10:02Behavior-driven development
- 11:51Readme-driven development
- 15:52Testable documentation
- 17:20API Blueprint and Dredd
- 20:19Design before implementing
- 20:41Live demo with Dredd
- 31:26Extending Dredd with Python hooks
- 31:49Key takeaways and summary
- 32:31Q&A session
related talks
48mBuilding your API with Apiary & Dredd
35mFake It Before You Make It: Mocking Your Way to Better HTTP APIs
38mLive Exploratory Testing
43mImprove your API and OpenAPI
24mLive Exploratory Testing
44mAPI Testing following the Test Pyramid
41mTDD for APIs
29mContract Testing in Python for a Data Science API
