swagger-api / swagger-api/swagger-codegen

[python] is there a way to redirect response contents to a file?

Open
#7,508 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.