Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] [scala-akka-client] Use sttp client to make scala client more generic #5292

Open
chameleon82 opened this issue Feb 11, 2020 · 1 comment

Comments

@chameleon82
Copy link
Contributor

chameleon82 commented Feb 11, 2020

Is your feature request related to a problem? Please describe.

Scala has a lot of different clients like akka-http-client, http4s, async-http-client and many others. Code generator can generate client with only few of them and use different templates for it
Second problem for scala clients is Json parser which is also hardcoded in every template.

Describe the solution you'd like

It is possible to generate client with wrapper library sttp and client can use any compatible implementation which currently support akka-http, async-http-client, http4s, OkHttp and java clients.

Describe alternatives you've considered

As alternative we can reuse templates as much as possible. For example, models in all scala implementations absolutely the same. Template structure can be redefined like /resources/base_language/language. Unfortunately, mustache template engine works not well with such complex paths.

Additional context

In akka-http-client we already have ApiRequest concept which has it's own definition in sttp library.

@clasnake @jimschubert @shijinkui @ramzimaalej

@cchafer
Copy link
Contributor

cchafer commented Mar 26, 2021

Hello,
As a former heavy contributor to the akka-http-client module, I agree a single scala client would be a good thing, and I would like to know the status of this request.

The idea behind is that I saw a few issues with akka-http-client, and I am wondering wether or not I should try to fix them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants