Web API and client generation using OpenAPI specification
summary
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
chapters (12)
- 0:00Start
- 3:47Summary
- 8:01A standard for describing web API
- 12:56Request and response body
- 16:56zircote/swagger-php
- 20:10Attributes
- 23:20openapi-psr7-validator
- 26:19Swagger Editor Validate Github Action
- 28:23Nette PHP Generator: example
- 35:57elastic-transport-php
- 38:36Example: enterprise-search-php
- 44:42Elasticsearch specification
related talks
42mPerformant APIs with GraphQL and PHP
42mState of the Art of Elasticsearch with PHP
45mOpenAPI for Web Developers
02h 03mWriting API clients with HTTPlug
34mTesting APIs written in PHP using the Behat feature testing tool
34mAPI Platform: From Rest & GraphQL APIs to state-of-the-art standards in seconds
53mUncovering Swagger/OpenAPI
01h 03mDeveloping and Designing RESTful Web APIs in PHP Using Apigility
