~/talk

Improve your API and OpenAPI

Talkat PHP UK Conference 2022 · 2022-02-16..02-18· [testing]
slides:none on file

OpenAPI drives a design‑first HTTP API workflow that produces docs, mocks and automated checks: the rock paper scissors example yields a spec, Redoc HTML docs, a Stoplight GUI editor, Prism mock server that enforces required fields, and Spectral plus an OpenAPI spec validator in CI. Middleware uses php league validators to return 422 for bad requests and 500 for invalid responses. Schemathesis generates 306 tests against one endpoint. This yields mock servers and validation middleware that actually catch integration and contract errors before production.

AI-written summary · about

  1. 0:00Start
  2. 10:06openapi.yaml
  3. 11:23Metadata
  4. 12:25Endpoints
  5. 17:11Build on top of other components
  6. 18:31Responses responses
  7. 20:27Editing
  8. 23:56Linting & validation CLI tools: Spectral, openapi-spec-validator, etc.
  9. 24:48Validation error
  10. 25:29Docs
  11. 28:30Mock server
  12. 29:39Make API calls
  13. 30:45Validation The schena section can be used to validate the request and response
  14. 34:19Test Request
  15. 35:01Test Response
  16. 35:27Successful validation
  17. 37:27Compliance Testing
  18. 39:09Other Interesting Tools • Optic: BC Break Detection
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.