Tuesday, March 21, 2017

Re: GWT + Open API

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. RestyGWT add
> almost nothing if you use JsInterop so you better use XMLHttpRequest
> directly (RequestBuilder is easier, and is a thin wrapper around
> XMLHttpRequest). If you want a bit of code-organization, you might use
> AutoREST, but this do not add more than a template to define each
> endpoint, actually enforces you to use JAX-RS, which might just block
> you in some cases. You really should try to map a few endpoints with a
> few models using JsInterop and
> com.google.gwt.http.client.RequestBuilder to feel how easy and clean
> it is. Do it progressively mapping each endpoint you need to use. If
> you have any doubt just ask for the specific endpoint or model you
> have a problem with.
>
> On Tuesday, March 21, 2017 at 7:08:59 AM UTC+1, Irek Szczesniak wrote:
>
> 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 a good option too, aka. autorest
> ;)...
> > this WIP generator reads openapi from apisguru and generates the
> GWT
> > JsInterop spec.
> >
> > On Mon, Mar 20, 2017 at 6:24 PM Rogelio Flores
> > <rogelio...@gmail.com <javascript:> <mailto:rogelio...@gmail.com
> <javascript:>>> wrote:
> >
> > We use RestyGWT to consume a swagger REST API and are very
> pleased
> > with it:
> >
> > https://resty-gwt.github.io/index.html
> <https://resty-gwt.github.io/index.html>
> >
> >
> >
> > On Monday, March 20, 2017 at 7:06:08 AM UTC-6, Irek
> Szczesniak wrote:
> >
> > Hi,
> >
> > I need to develop a web client with GWT, which consumes
> a web
> > service defined with Open API (formerly Swagger).
> >
> > I wonder whether someone could offer some advice on how
> to do
> > it best with GWT.
> >
> >
> > Thanks,
> > Irek
> >
> > --
> > 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 <javascript:>
> > <mailto:google-web-toolkit+unsubscribe@googlegroups.com
> <javascript:>>.
> > To post to this group, send email to
> > google-we...@googlegroups.com <javascript:>
> > <mailto:google-we...@googlegroups.com <javascript:>>.
> > Visit this group at
> > https://groups.google.com/group/google-web-toolkit
> <https://groups.google.com/group/google-web-toolkit>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
> >
> > --
> > 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
> <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 <javascript:>
> > <mailto:google-web-toolkit+unsubscribe@googlegroups.com
> <javascript:>>.
> > To post to this group, send email to
> > google-we...@googlegroups.com <javascript:>
> > <mailto:google-we...@googlegroups.com <javascript:>>.
> > Visit this group at
> https://groups.google.com/group/google-web-toolkit
> <https://groups.google.com/group/google-web-toolkit>.
> > For more options, visit https://groups.google.com/d/optout
> <https://groups.google.com/d/optout>.
>
> --
> 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