Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: add getOptionalEntity method
......................................................................
restapi: add getOptionalEntity method
Provide a way to load an optional entity from the backend and
if that's missing an Exceptioni isn't being thrown. Upon a failure the
regular failure handling logic applies.
Change-Id: I2cebffc1676cf344ee8253f1677c8470489506d8
Signed-off-by: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
---
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendResource.java
1 file changed, 31 insertions(+), 2 deletions(-)
Approvals:
Juan Hernandez: Looks good to me, approved
Yevgeny Zaspitsky: Verified
--
To view, visit
https://gerrit.ovirt.org/38626
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2cebffc1676cf344ee8253f1677c8470489506d8
Gerrit-PatchSet: 2
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Yevgeny Zaspitsky <yzaspits(a)redhat.com>
Gerrit-Reviewer: automation(a)ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server