Bug 958772 - RFE: Improve querying for resources
Summary: RFE: Improve querying for resources
Keywords:
Status: NEW
Alias: None
Product: RHQ Project
Classification: Other
Component: REST
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Heiko W. Rupp
QA Contact:
URL:
Whiteboard:
Depends On: 966665
Blocks: 960959
TreeView+ depends on / blocked
 
Reported: 2013-05-02 11:38 UTC by Libor Zoubek
Modified: 2022-03-31 04:27 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 960959 (view as bug list)
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2013-05-02 11:38:44 UTC
Description of problem: Currently our /rest/resource is not yet enough powerful. For example it returns resources that are not yet imported in inventory and there is no way to distinguish InventoryStatus

This BZ should have been only about InventoryStatus, although I think REST api deserves more general improvement.


Version-Release number of selected component (if applicable):
RHQ 4.7-master

What about supporting all possible (or a larger subset) Filters from ResourceCriteria

we would get rid of query parameter 'q' which now filters by name

And we add at least these parameters (those make sense for me)
name
status (InventoryStatus) : default COMMITED
availability (AvailabilityType) : default UP
type (resourceTypeName)
parentName (parentResourceName)
parentType (parentResourceTypeName)
pluginName
category would be kept
strict=true|false
order=fieldName

Comment 1 Heiko W. Rupp 2013-05-10 10:21:07 UTC
Addition of inventory status and filtering on it has been implemented in master as 8868d160 as Bug 960959

Comment 2 Heiko W. Rupp 2013-05-10 10:40:26 UTC
The parameter 'q' has been introduced as most search apis seem to use this (e.g google ), so it will not be dropped.


Note You need to log in before you can comment on or make changes to this bug.