https://github.com/pguso/openapi-symfony
Skeleton for integrating a generated OpenAPI Symfony Bundle from OpenAPI Spec.
https://github.com/pguso/openapi-symfony
Last synced: over 1 year ago
JSON representation
Skeleton for integrating a generated OpenAPI Symfony Bundle from OpenAPI Spec.
- Host: GitHub
- URL: https://github.com/pguso/openapi-symfony
- Owner: pguso
- License: mit
- Created: 2021-09-27T16:59:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-28T10:18:15.000Z (almost 5 years ago)
- Last Synced: 2025-02-21T17:11:49.538Z (over 1 year ago)
- Language: PHP
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
This repository is part of the medium article https://pguso.medium.com/openapi-generator-use-symfony-bundle-in-your-project-28034505548d
## Setup Project
1. Clone the project via git or https.
2. install dependencies ``composer install``
3. Change DATABASE_URL in .env file to your connection config
4. Implement your Api Classes in the src/Api folder
5. Add your new Service to config/services.yaml and tag it
### Generate / Regenerate Symfony Bundle
``composer run generate-openapi-bundle``
### API implementation
Check the docs here src/OpenApiBundle/Resources/docs