1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / How to Build a REST WCF Query for Image Content?

How to Build a REST WCF Query for Image Content?

2 posts, 0 answered
  1. Wayne
    Wayne avatar
    1 posts
    Registered:
    01 Feb 2012
    03 Feb 2012
    Link to this post

    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


  2. Svetoslav Petsov
    Svetoslav Petsov avatar
    456 posts
    Registered:
    24 Sep 2012
    07 Feb 2012
    Link to this post
    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
2 posts, 0 answered