Listing Searches - ACS - Reference Guides

ACS Integration Guide

Product
ACS
AFS_Version
7.9
Category
Reference Guides
language
English
audience
public

To list searches of a book or a folder, a CKS user must use the GET method on the search list resource relative to this book or this folder. The query returns one results page which may include a portion of the results.

WADL file

Resource

Method

search.wadl

/cks/instance/<service_id>-${Service_Status}/book/
{book_id}/
search

GET

The following example shows how to list searches.

The request line is:

GET cks/instance/<service_id>-${Service_Status}/book/13/search?afs:login=login://aeinsten:albert@CKS/<service_id>-${Service_Status}

The reply body is:

<value xsi:type="ws.response" xmlns="antidot:cks:output"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<result xsi:type="ws.filtering.result">
<count>2</count>
<totalCount>2</totalCount>
<values>
<item xsi:type="cks.ws.search.afs"
reference="/cks/instance/<service_id>-${Service_Status}/book/13/search/31">
<id>31</id>
<description>AFS search</description>
<schedule xsi:type=”cks.ws.schedule.hourly”>
<startTime xsi:type="time" timestamp=”31583000”>
09:00:00+02:00
</startTime>
<period>12</period>
</schedule>
<name>This is search for Albert</name>
<url>
http://www.antidot.net/search?afs:query=albert
</url>
</item>
<item xsi:type="cks.ws.search.afs"
reference="/cks/instance/<service_id>-${Service_Status}/book/13/search/64">
<id>64</id>
<description>AFS search</description>
<name>This is search for William</name>
<url>
http://www.antidot.net/search?afs:query=william
</url>
</item>
</values>
</result>
</value>