Tuesday, March 21, 2017

Re: GWT + Open API

Thanks, Jens! This sounds interesting.

Are there some examples on how to do that? I guess, the problem is
not how to use JsInterop, but how to handle asynchronous HTTP requests
with the generated data model.


Best,
Irek

On 21.03.2017 10:43, Jens wrote:
> Swagger itself has also a code generator that already can output
> JavaScript so you could wrap it using JsInterop. You could also write
> a custom plugin for Swagger's code generator that outputs GWT
> compatible Java code directly.
>
> Just open your swagger JSON in http://editor.swagger.io/#!/ and
> download the generated code if you want to take a look at the
> generated JavaScript output.
>
> Code generator: https://github.com/swagger-api/swagger-codegen
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/hyILXPwx9Pc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscribe@googlegroups.com
> <mailto:google-web-toolkit+unsubscribe@googlegroups.com>.
> To post to this group, send email to
> google-web-toolkit@googlegroups.com
> <mailto:google-web-toolkit@googlegroups.com>.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment