[Engine-devel] Application URI - saved anywhere?

Oved Ourfalli ovedo at redhat.com
Wed Jan 22 13:00:08 UTC 2014



----- Original Message -----
> From: "Ori Liel" <oliel at redhat.com>
> To: "Oved Ourfalli" <ovedo at redhat.com>
> Cc: "engine-devel" <engine-devel at ovirt.org>
> Sent: Wednesday, January 22, 2014 2:53:13 PM
> Subject: Re: [Engine-devel] Application URI - saved anywhere?
> 
> >
> >
> >----- Original Message -----
> >From: "Oved Ourfalli" <ovedo at redhat.com>
> >To: "Ori Liel" <oliel at redhat.com>
> >Cc: "engine-devel" <engine-devel at ovirt.org>
> >Sent: Wednesday, January 22, 2014 2:44:34 PM
> >Subject: Re: [Engine-devel] Application URI - saved anywhere?
> >
> >
> >
> >----- Original Message -----
> >> From: "Ori Liel" <oliel at redhat.com>
> >> To: "engine-devel" <engine-devel at ovirt.org>
> >> Sent: Wednesday, January 22, 2014 2:32:29 PM
> >> Subject: [Engine-devel] Application URI - saved anywhere?
> >> 
> >> Hi,
> >> 
> >> RSDL lists the possible links that the user can activate in Rest-API. The
> >> URI
> >> of A link looks something like this:
> >> 
> >>   "/ovirt-engine/api/vms/{vm:id}/start"
> >> 
> >> My question is about the prefix: "/ovirt-engine/api/". Until now RSDL was
> >> generated at run-time, under a running application server, and this prefix
> >> was received by querying for the base-uri of the current user's request.
> >> I'm
> >> in the process of enabling RSDL generation at build time, and thus won't
> >> have a request to get this URI from. I'm thinking to add this constant:
> >> "/ovirt-engine/api" somewhere in pom.xml files, and use it. Does that
> >> sound
> >> reasonable? (if not, why, and what do you think I should do instead?)
> >> 
> >
> >This entry already exists today in the ovirt-engine repo, in ear/pom.xml as
> >the contextRoot of the API webapp.
> >Would that be enough?
> 
> Thanks for pointing that out, I'll move if from there to the base pom.xml,
> since this value should be available for both the GUI and the API.

Sounds good to me.

> >
> >> Thanks,
> >> 
> >> Ori.
> >> _______________________________________________
> >> 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 Engine-devel mailing list