Re: GWT + Open API

2017-03-27 Thread Ireneusz Szcześniak
t; > > > > El jue., 23 mar. 2017 12:16, Ireneusz Szcześniak > > <irek.sz...@gmail.com <mailto:irek.sz...@gmail.com > >> escribió: > > > > Thank you, Rogelio, for your input.

Re: GWT + Open API

2017-03-25 Thread Ireneusz Szcześniak
Thanks, Rogelio, for your instructions. I'm working on this now. I'll report on the progress later. On 23.03.2017 22:56, Rogelio Flores wrote: No, I have not tried generating API interfaces for a CXF client. I don't remember even seeing that option when we first created the api (more than a

Re: GWT + Open API

2017-03-25 Thread Ireneusz Szcześniak
mar. 2017 12:16, Ireneusz Szcześniak > <irek.sz...@gmail.com <mailto:irek.sz...@gmail.com >> escribió: > > Thank you, Rogelio, for your input. > > I like the idea of generating the data model from the OpenAPI > specification,

Re: GWT + Open API

2017-03-24 Thread Ireneusz Szcześniak
It's public. Does it make some difference? On 23.03.2017 17:04, Ignacio Baca Moreno-Torres wrote: Just curious, the API is internal or external, the swagger spec is public? El jue., 23 mar. 2017 12:16, Ireneusz Szcześniak <irek.szczesn...@gmail.com <mailto:irek.szczesn...@gma

Re: GWT + Open API

2017-03-23 Thread Ireneusz Szcześniak
Thank you, Rogelio, for your input. I like the idea of generating the data model from the OpenAPI specification, because I will not have to write some boring error-prone code. I also like the optimization of the GWT compiler. The swagger-codegen can output Jaxrs Cxf Client, which has the

Re: GWT + Open API

2017-03-21 Thread Ireneusz Szcześniak
Thanks, Rogelio! When you auto-generate Java source code, do you use swagger-codegen to generate Java client code, so that you get Java classes implementing the types from the OpenAPI #/definitions? On 21.03.2017 20:50, Rogelio Flores wrote: We do auto-generate Java source code out of the

Re: GWT + Open API

2017-03-21 Thread Ireneusz Szcześniak
Thanks, Ignacio! Your description sounds very convincing. If JsInterop + RequestBuilder do the trick (out of the GWT box), then that's awsome! I'll give it a try. Thanks again! On 21.03.2017 20:47, Ignacio Baca Moreno-Torres wrote: Accessing REST apis using JsInterop is easy and natural.

Re: GWT + Open API

2017-03-21 Thread Ireneusz Szcześniak
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

Re: GWT + Open API

2017-03-21 Thread Ireneusz Szcześniak
Thank you, Ignacio, for your input. What's cool in your solution is that it uses the JsInterop provided by GWT. I wonder what are the pro and cons of the JsInterop approach versus the RestyGWT approach. On 21.03.2017 00:00, Ignacio Baca Moreno-Torres wrote: JsInterop and XMLHttpRequest is

Re: GWT + Open API

2017-03-20 Thread Ireneusz Szcześniak
Thank you, Rogelio, for your info. But I guess no code is generated automatically, you have to develop it yourself. Is this right? I'm not fully for code generation (such code is usually messy and hard to read), but generating some bits, like a model of the data structures could be useful.