vtgianni / apiplatformdoc-bundle
A Symfony bundle to generate API Platform documentation.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.4
- api-platform/core: ^2.6
- symfony/framework-bundle: ^5.4
- dev-main
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.41
- v0.0.40
- v0.0.39
- v0.0.38
- v0.0.37
- v0.0.36
- v0.0.35
- v0.0.34
- v0.0.33
- v0.0.32
- v0.0.31
- v0.0.30
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
This package is auto-updated.
Last update: 2024-10-08 17:56:58 UTC
README
About
Api Platform Doc Bundle is a Symfony bundle providing simple documentation linked to api platform if you don't want to use Swagger.
Install
Requirements
⚠️ Here are the requirements for using Api Platform Doc Bundle:
php: >=7.4 api-platform/core: ^2.6 symfony/framework-bundle: >=5.4
Get started
To get started with Api Platform Doc Bundle, use Composer to add the package to your project's dependencies:
composer require vtgianni/apiplatformdoc-bundle
Then add this service to your config/packages/security.yaml file:
ApiPlatform\Core\Bridge\Symfony\Routing\RouteNameResolverInterface: '@api_platform.route_name_resolver.cached'
And this route to your config/routes.yaml file:
api_platform_doc: resource: "@ApiPlatformDocBundle/Resources/config/routing.yaml"
Finally configure the desired route to view the documentation in .env.local file:
API_PLATFORM_DOC_PATH="documentation"
That's it! You should be able to see the documentation at this new route:
https://127.0.0.1:8000/documentation