An example project demonstration the fusonic/api-documentation-bundle with the fusonic/http-kernel-extensions.
Two example controllers are included:
src/ContactController.php
(using plain OpenApi, regular Route annotations, cumbersome validation and (de)serialization)src/ImprovedController.php
(using features from the http-kernel-extensions and api-documentation-bundle)
To view the documentation, navigate to /api/docs
.
- Install Docker
- Start the PHP container:
./start-docker-container.sh
. - (In container) Install the packages:
composer install
. - (In container) Start the development server (inside the container):
./bin/start-server.sh