swagger-api / swagger-api/swagger-codegen
Add loadbalancing support for code gen requests
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
The swagger editor make two calls to generate code. First a POST to send he JSON/YAML that returns a link to download the code. It then calls a GET using the link that was returned. This works fine if there is shared storage backing the code gen servers behind a load balancer. But it breaks if the code gen servers write the .zip file to their private file systems.
It would be good if swagger-codegen can be hosted behind a loadbalancer without setting up shared storage. Perhaps a single POST request that returns the generated code?
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
The issue names no files or tests; start by tracing the code-generation POST request and the subsequent GET download flow. Define and verify a design that supports code generation behind a load balancer without shared storage, including a complete response or download path for the generated archive.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi
- Domain
- api, backend, infrastructure
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100