Change in ovirt-engine[master]: restapi: Support max result num for queries

oliel at redhat.com oliel at redhat.com
Wed Jun 13 12:04:14 UTC 2012


Ori Liel has submitted this change and it was merged.

Change subject: restapi: Support max result num for queries
......................................................................


restapi: Support max result num for queries

When  querying a collection, make it possible to add 'max'
matrix parameter as such: .../api/vms;max=200. This will
set the max number of results that the query should return

Change-Id: Ifc545e7084d6e34aca5c62a448575daf68960fd9
Signed-off-by: Ori Liel <oliel at redhat.com>
---
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata_v-3.1.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/AbstractBackendCollectionResource.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/test/java/org/ovirt/engine/api/restapi/resource/BackendTagsResourceTest.java
4 files changed, 172 insertions(+), 41 deletions(-)

Approvals:
  Ori Liel: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifc545e7084d6e34aca5c62a448575daf68960fd9
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>



More information about the Engine-commits mailing list