title: OpenAPI lightning talk @PHPUGDD Meetup V/2022 author: Jan Männig (move:elevator) date: 2022-12-07
- OpenAPI short overview
- Why open api schemas in projects
- Integrate for validation
- https://github.com/thephpleague/openapi-psr7-validator
- validate request against schema
- custom validator
- Create api documentation
- generate api doc
- example what's possible -> https://redocly.github.io/redoc/
- Import in postman
- Todos next level
- validate response
- extend document with additional information
- Alternatives NelmioApiDocBundle https://symfony.com/bundles/NelmioApiDocBundle/current/index.html
- run
composer install
in folder ./application - start docker
- run
../vm/sh/server_start.sh
in folder ./application
- league/openapi-psr7-validator
- nyholm/psr7
- symfony/psr-http-message-bridge