swagger-api / swagger-api/swagger-codegen
[python] is there a way to redirect response contents to a file?
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
One of the end point returns a file that needs to be downloaded/redirected to a file. Would like to know if anyone is aware or has tried similar response type. The response is contents of a compressed file and so i would like to redirect it to tar.gz file which i can rdirect and untar locally.
Swagger-codegen version
2.2.1
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
No source file, test, or entry point is named. Start by locating the Python client templates and generated response-handling code for file or binary responses, then check existing tests for downloaded content. Done would require a documented or tested way to preserve the compressed response as a local tar.gz file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100