Change in ovirt-engine[master]: restapi: Simplify generation of root service links

juan.hernandez at redhat.com juan.hernandez at redhat.com
Tue Feb 2 11:32:25 UTC 2016


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Simplify generation of root service links
......................................................................


restapi: Simplify generation of root service links

Currently the links generated for the root service (for the /api URL)
are calculated using the JAX-RS "UriInfo" class. In order to simplify
these calculations, and in order to be able to support multiple versions
of the API, this patch changes the root service so that it uses instead
the methods provided by the "current" object.

Change-Id: I9de13aa71e0587bb31add94e7609185082f19be9
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendApiResource.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendApiResourceTest.java
2 files changed, 36 insertions(+), 75 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests

Objections:
  Jenkins CI: Failed CI tests



-- 
To view, visit https://gerrit.ovirt.org/52690
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I9de13aa71e0587bb31add94e7609185082f19be9
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list