~/talk

Web API and client generation using OpenAPI specification

Talkat phpday 2022 · 2022-05-19..05-20· [php, web-platform]
slides:none on file

Demonstrates that an OpenAPI spec can be parsed to produce real PHP client libraries that actually work against Elasticsearch and Enterprise Search, with generates a PHP client from OpenAPI and 400+ endpoints generated as a concrete outcome. Shows the toolchain used (OpenAPI, deserialization into typed request/response classes, elastic-transport PHP, PSR-7/PSR-18/PSR-3, net PHP generator) and automated tests/actions that validate specs and keep generated code up to date.

AI-written summary · about

  1. 0:00Start
  2. 3:47Summary
  3. 8:01A standard for describing web API
  4. 12:56Request and response body
  5. 16:56zircote/swagger-php
  6. 20:10Attributes
  7. 23:20openapi-psr7-validator
  8. 26:19Swagger Editor Validate Github Action
  9. 28:23Nette PHP Generator: example
  10. 35:57elastic-transport-php
  11. 38:36Example: enterprise-search-php
  12. 44:42Elasticsearch specification
~/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.