How to Build a REST WCF Query for Image Content?
Hi Folks;
I am looking for a REST WCF query that will allow me to filter image content based on the following:
- Image Library Name
- Category
- Tag name(s)
- Title
I believe this is the correct webservice I should be working with but I have no idea what to provide for the filter, sort expression, skip and take.
Sitefinity/Services/Content/ImageService.svc/?sortExpression=sortExpression&skip=skip&take=take&filter=filter&provider= OpenAccessDataProvider&workflowOperation=workflowOperation
PS. If I need to build on this query in the future, where do I obtain the metadata on the database fields I can work with?
Thanks in advance;
-Wayne
Hello Wayne,
Usually these filter expressions are set from code (in most cases to the client binder controls) and their syntax is the same as an SQL filtering (with AND, OR, DESC and so on). However, there is one thing that I am not sure I understand. Can you give me more details on where exactly do you want to set the filter expression? Do you want to directly set it in the url (with the escaping and everything)? If you have a control, or a field, it would be better to do it inside them, or wire to the client binders and set the filter expression there. I would appreciate a better picture of the end purpose, so that I can give you the right directions on what to use. Thanks in advance.
All the best,
Svetoslav Petsov
the Telerik team