swagger-api / swagger-api/swagger-codegen
Create server stub generation for laravel
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
As a laravel developer I would like to have the server stub being generated from my swagger documentation.
Swagger-codegen version
2.4 / 3
Command line used for generation
./run-in-docker.sh generate -t modules/swagger-codegen/src/main/resources/php-laravel -i modules/swagger-codegen/src/test/resources/2_0/petstore.yaml -l php-laravel -o out/server/petstore/php-laravel
Suggest a fix/enhancement
I started the development already and will create a separate branch within a fork for a later pull request. Everybody is welcome to help me writing the test and get it accepted. Feedback is welcome all the time.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the php-laravel templates in modules/swagger-codegen/src/main/resources/php-laravel and the generation command shown for modules/swagger-codegen/src/test/resources/2_0/petstore.yaml. Review the existing generator tests and add coverage for the Laravel server output. Done means the documented command generates a usable Laravel server stub and the test verifies it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, openapi, php
- Domain
- api, backend, tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100