swagger-api / swagger-api/swagger-codegen
is there an option to specify proxy in the request api?
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
I'm looking for a way to specify proxy server address in the request api thru the api_client.
for example i use below option to call the request api.
requests.get(url,headers=headers,proxies='proxy-wsa.esl.cico.com:80')
is there a similar option in the api_client to add this ?
Swagger-codegen version
2.2.2
-l python.
Steps to reproduce
happens when you'r host is behind a proxy server and you need to pass on the proxy server address
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 by locating the generated Python api_client request path and the template or entry point that controls it; the issue names no specific file or test. Compare its request options with the shown requests.get proxy usage. Done means callers can provide a proxy server address for API requests, with coverage for that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100