Change in ovirt-engine[master]: restapi: Add Link-Following support

Code Review gerrit at ovirt.org
Wed Aug 2 12:19:49 UTC 2017


>From Ori Liel <oliel at redhat.com>:

Ori Liel has submitted this change and it was merged. ( https://gerrit.ovirt.org/79993 )

Change subject: restapi: Add Link-Following support
......................................................................


restapi: Add Link-Following support

Add 'link-following' feature. This feature enables API users
to request references inside an entity to be fully fetched
alonside the entity. For example, to recieve a VM along
with its nics:

  GET .../api/vms?follow=nics

Complex usages are possible, with several links/references of
an entity followd, and at several levels of depth, e.g:

  GET .../api/vms?follow=disk_attachments.disk,nics

Bug-Url: https//bugzilla.redhat.com/1463633
Change-Id: I67e242b3668612c70acca9e80d0495b87823ae27
Signed-off-by: Ori Liel <oliel at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/ServiceTree.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/ServiceTreeCrawler.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/rsdl/ServiceTreeNode.java
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/EntityHelper.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/utils/ReflectionHelper.java
A backend/manager/modules/restapi/interface/definition/src/test/java/org/ovirt/engine/api/utils/EntityHelperTest.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendSnapshotDiskResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BaseBackendResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/ResourceLocator.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/utils/LinkFollower.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/utils/LinksTreeNode.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/util/ParametersHelper.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/utils/LinksTreeNodeTest.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/util/LinkFollowerTest.java
M pom.xml
16 files changed, 919 insertions(+), 11 deletions(-)

Approvals:
  Ori Liel: Verified; Looks good to me, approved; Passed CI tests
  Jenkins CI: Passed CI tests



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

Gerrit-MessageType: merged
Gerrit-Change-Id: I67e242b3668612c70acca9e80d0495b87823ae27
Gerrit-PatchSet: 4
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Moti Asayag <masayag 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