Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Add "size" support to templates
......................................................................


restapi: Add "size" support to templates

This patch adds support for new "size" detail specifications for the
templates collection.

When the "size" detail is requested the result will look like thiss:

  GET /templates;detail=+size HTTP/1.1
  All-Content: true

  <templates>
    <size>123</size>
    <template id="..." href="...">
      ...
    </template>
    ...
  </templates>

The "main" detail is intended to suppress output of the actual data, so that
only the size will be populated:

  GET /templates;detail=-main+size HTTP/1.1
  All-Content: true

  <templates>
    <size>123</size>
  </templates>

Change-Id: I6f39413ea33319a21fd48018017fce8030ecbf14
Bug-Url: https://bugzilla.redhat.com/1132249
Signed-off-by: Juan Hernandez <[email protected]>
---
M 
backend/manager/modules/restapi/interface/definition/src/main/resources/api.xsd
M 
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendTemplatesResource.java
2 files changed, 35 insertions(+), 12 deletions(-)

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



-- 
To view, visit http://gerrit.ovirt.org/34223
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6f39413ea33319a21fd48018017fce8030ecbf14
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Juan Hernandez <[email protected]>
Gerrit-Reviewer: Ori Liel <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to