Api webservice query


#1

Hello, I would like to filter the list of assets extrapolating only the images and documents by setting the following query string.

http://dev.dam.local/webservice/rest/asset-list?apikey=b00b4ba84037b8e78138c83df07893394e51d34f43f0e8603890b255a005386f&q={"$or":[{"type":"image"},{"type":"document"}]}

The webservice, however, tells me that there are no data results

{ "success": true, "total": 0, "data": [] }

The data instead there are. In fact, if I remove the query string in my call, it returns all the assets.

Where am I wrong? Could you give me a hand?


#2

Hello,

I think it’s bug. This expression is resolved by Pimcore to AND instead of OR. And that’s why you get 0 results.