List of Filters for a Product Code
get
/appstore/publisher/v1/products/{productCode}/filters
Get a list of supported filters for the given product. These filters are custom attributes that can be added to applications and are useful for customers to find your applications when browsing the Marketplace.
Request
Path Parameters
-
productCode: string
Unique identifier of the product for which the associated filters are required.
Query Parameters
-
limit(optional): integer(int32)
Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
-
offset(optional): integer(int32)
Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
Response
Supported Media Types
- application/json;qs=1
- application/xml;qs=.5
200 Response
Successful Operation
Nested Schema : Link
Type:
Show Source
object
-
href(optional):
string
-
rel(optional):
string
Allowed Values:
[ "SELF", "CANONICAL", "NEXT", "TEMPLATE", "PREV" ]
400 Response
Invalid Parameter Value
401 Response
Not Authorized
404 Response
Entity Not Found
500 Response
System Error
Examples
The following example returns a list of all the product filters applicable for a product code, by submitting a GET request on the REST resource using cURL.
cURL Example
curl -X GET -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/products/marketing/filters"
Request Header
X-Oracle-UserId: fname.lname@oracle.com Authorization: Bearer Access-token
Request Body
None
HTTP Status Code:
200 OK
JSON Response:
{ "items":[ { "filter":{ "code":"PRICING", "name":"Price", "usageInstructions":"Price", "multiSelect":false, "mandatory":false } }, { "filter":{ "code":"RELEASE_DATE", "name":"Release Date", "usageInstructions":"Release Date", "multiSelect":false, "mandatory":false } }, { "filter":{ "code":"CATEGORY", "name":"Category", "usageInstructions":"Category", "multiSelect":true, "mandatory":false } }, { "filter":{ "code":"LANGUAGE", "name":"Language", "usageInstructions":"Language", "multiSelect":true, "mandatory":false } }, { "filter":{ "code":"FILTER1", "name":"filter1", "usageInstructions":"test", "multiSelect":true, "mandatory":false, "values":[ { "code":"1", "name":"1" }, { "code":"2", "name":"2" }, { "code":"3", "name":"3" } ] } }, { "filter":{ "code":"DEVICE_TYPE", "name":"Device Type", "usageInstructions":"Device Type", "multiSelect":true, "mandatory":false } } ], "hasMore":false, "count":6, "totalResults":6, "links":[ { "rel":"CANONICAL", "href":"https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/products/compute/filters" }, { "rel":"SELF", "href":"https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/products/compute/filters" } ] }Back to Top