swagger-api / swagger-api/swagger-codegen
[Ruby] Add support for Faraday (HTTP lib)
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
Currently, Ruby API client has a dependency on Typhoeus (HTTP lib).
We want to add support for Faraday to provide more flexibility in choosing what HTTP lib to use in the Ruby API client.
Swagger-Codegen version
Current master (Jul 1, 2016)
Suggest a solution
Similar to Java, we can use the -l/--library option to specify faraday and implement the api_client.rb with faraday so that users can choose which one they want to use.
If anyone from the community wants to contribute on this, please reply to let us know. Thanks
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 Ruby API client's api_client.rb and the existing -l/--library handling, then compare it with the Java implementation that supports library selection. Implement the Faraday option alongside Typhoeus and verify that generated Ruby clients can select and use Faraday.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100