swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.03k stars 6.03k forks source link

[Java] Add support for Apache Http Client in Java client codegen #5588

Open erdarun opened 7 years ago

erdarun commented 7 years ago
Description

We are looking for Apache Http Client java client codegen support. Is there anyone already developed or involved in development? Please let us know.

Swagger-codegen version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues
Suggest a Fix
cbornet commented 7 years ago

I think you should really consider a better lib such as okhttp.

wing328 commented 7 years ago

@erdarun if you want to add the support for Apache Http client, please base your work on 2.3.0 branch instead of current master as 2.3.0 contains enhancements on datetime for Java API client.

miladhub commented 5 years ago

Any news about this?

Since a client is basically a wrapper around REST calls, I'm quite surprised to see no Apache HttpClient-based implementation for code generation. Is this something that is going to become available anytime soon?

HugoMario commented 5 years ago

Hi @miladhub,

It could become available, if you are willing to add a PR let me know and i can help with reviewing and merging.