arjanfrans / api-documentation-bundle-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ApiDocumentationBundle Example

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.

Recommended development setup

  1. Install Docker
  2. Start the PHP container: ./start-docker-container.sh.
  3. (In container) Install the packages: composer install.
  4. (In container) Start the development server (inside the container): ./bin/start-server.sh

About


Languages

Language:PHP 89.6%Language:Dockerfile 7.1%Language:Shell 3.3%