How to Build a REST WCF Query for Image Content?

Posted by Community Admin on 04-Aug-2018 04:45

How to Build a REST WCF Query for Image Content?

All Replies

Posted by Community Admin on 03-Feb-2012 00:00

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


Posted by Community Admin on 07-Feb-2012 00:00

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

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed