[Engine-devel] REST API calls from the GUI

Morrissey, Christopher Christopher.Morrissey at netapp.com
Tue Feb 12 22:53:52 UTC 2013


The UI plugin framework already makes a session ID available for REST API calls. Oved's blog gives a good description with some example code.

http://ovedou.blogspot.co.il/2012/12/ovirt-foreman-ui-plugin.html

-Chris

> -----Original Message-----
> From: engine-devel-bounces at ovirt.org [mailto:engine-devel-
> bounces at ovirt.org] On Behalf Of Keith Robertson
> Sent: Tuesday, February 12, 2013 11:30 AM
> To: Libor Spevak
> Cc: engine-devel at ovirt.org
> Subject: Re: [Engine-devel] REST API calls from the GUI
> 
> Not sure if this is possible now but, I would like the front-end to expose an
> authenticated hook to the API so that plug-ins can call RESTful methods.  It
> would enable plug-in writers to do all sorts of interesting things in their plug-
> ins with the RESTful API.
> 
> Cheers,
> Keith
> 
> On 02/12/2013 11:13 AM, Libor Spevak wrote:
> > Hi,
> >
> > I would like to ask, if there have been discussions about an option to
> > call REST API services directly from the Frontend (GWT layer)? GWT
> > compiles Java frontend-side to Javascript, calls to backend services
> > are performed "transparently" by the framework using AJAX support.
> > But, there is still a need to have a special set of data objects and
> > the server-side logic can duplicate.
> >
> > Java REST API SDK enables to build "thick" client. The calls are
> > realized using e.g. Apache HttClient and supported libraries. I think
> > the requirements of GWT can be a little bit different, but something
> > overlaps.
> >
> > I found several links about REST API support from GWT, so there is
> > something for inspiration...
> >
> > - http://www.spiffyui.org/
> > - http://www.zackgrossbart.com/hackito/gwt-rest/
> > - http://code.google.com/p/gwt-rest/
> > - http://restygwt.fusesource.org/
> >
> > But, do you think it would be useful and what drawbacks can occur
> > (authentication, authorization, response times, need to support larger
> > set of services, painful refactoring, ...)?
> >
> > Regards,
> > Libor
> >
> > _______________________________________________
> > Engine-devel mailing list
> > Engine-devel at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> 
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel



More information about the Devel mailing list