colvin / api-platform-swagger-decorator
Swagger decorator for API Platform, adding JWT endpoints
Installs: 1 776
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- symfony/http-foundation: ^5.0
- symfony/serializer: ^5.0
README
Swagger decorator for API Platform, adding JWT endpoints
Install the package:
composer req colvin/api-platform-swagger-decorator
Define the service in services.yaml
:
services:
Colvin\Swagger\Decorator:
decorates: 'api_platform.openapi.factory'
autoconfigure: false
If you go to your api docs page you should now see a new group with JWT authentication and refresh endpoints.