swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[JAVA] support WebClient based (Spring WebFlux framework) client generation

Open simingweng opened this issue 8 years ago • 5 comments

Description

The feature request is to add the capability to generate a client library based on the WebClient API offered by non-blocking Spring WebFlux framework

Suggest a fix/enhancement

A easy starting point could be taking a look at the blocking counterpart "RestTemplate"-based client and swap it with the non-blocking API

simingweng avatar Dec 19 '17 15:12 simingweng

Hello!

I would like to start working on this issue

fjavierjimenez avatar Jun 20 '18 19:06 fjavierjimenez

@fjavierjimenez Just created PR with WebClient support to openapi-generator: https://github.com/OpenAPITools/openapi-generator/pull/435

Wait for the PR to be merged or use my branch (https://github.com/daonomic/openapi-generator) for now (It works OK for me) Let me know if something doesn't work for you

0v1se avatar Jul 03 '18 06:07 0v1se

Is it resolved? I'm still getting this error when trying to generate webclient version of API:

java.lang.RuntimeException: Unknown library: webclient
Available libraries:
  jersey1
  feign
  jersey2
  okhttp-gson
  retrofit
  retrofit2
  resttemplate
  resteasy

vchernogorov avatar Feb 02 '21 12:02 vchernogorov

@vchernogorov It was added to https://github.com/OpenAPITools/openapi-generator not swagger-codegen

r1m avatar Feb 09 '21 13:02 r1m

Please explain in details how do you solved this

josebarros2025 avatar Feb 19 '24 10:02 josebarros2025