Search assets by Collection instance
API calls require an Authorisation header Bearer token.
Return list of objects
Example: Return Reports and Datasets filtered on category:gold
Paginate using start
and rows
.
Example rows: 30
means 30 results returned per page.
start: 0
means return 30 rows start from the first row.
To return the next page increment start by rows. eg start: 30
Request
CODE
POST https://{your.domain.com/solr/search/select
{
"params": {
"q": "*",
"fq": "object_type_txt:(REPORT DATASET) AND category_kc_msrt:(GOLD)",
"fl": "name_srt,location_srt,id",
"defType": "edismax",
"wt": "json",
"sort": "name_srt asc",
"start": 0,
"rows": 30
}
}
Response
CODE
{
"responseHeader": {
"status": 0,
"QTime": 1,
"params": {
"json": "{\n \"params\": {\n \"q\": \"*\",\n \"fq\": \"object_type_txt:(REPORT DATASET) AND category_kc_msrt:(GOLD)\",\n \"fl\": \"name_srt,location_srt,id\",\n \"defType\": \"edismax\",\n \"wt\": \"json\",\n \"sort\": \"name_srt asc\",\n \"start\": 0,\n \"rows\": 30,\n }\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
}
},
"response": {
"numFound": 169,
"start": 0,
"numFoundExact": true,
"docs": [
{
"location_srt": "test",
"name_srt": "Report 1234",
"id": "1b96c222-a782-3fba-ad06-d9dc31352671"
}
...
]
}
}