Spécification d'API REST de portées de recherche
L'API de portées (Scopes) renvoie l'ensemble des valeurs prises en charge qui peuvent être transmises au paramètre scope de l'API de recherche HCL.
Format de demande
| Chemin de contexte | Authentification |
|---|---|
| /PORTAL_CONTEXT/contenthandler/searchfeed/scopes | API de portées |
Format de réponse
La réponse est une liste au format Atom des valeurs possibles pouvant être transmises à l'API de recherche via le paramètre scope de l'API de recherche.
Exemple de réponse
<atom:feed xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"
xmlns:xhtml="http://www.w3.org/1999/xhtml"
xmlns:atom="http://www.w3.org/2005/Atom">
<atom:title>Available Scopes</atom:title>
<atom:link href="searchfeed:scopes" rel="self" type="application/atom+xml"/>
<atom:author>
<atom:name>Enterprise Search API Web Service.</atom:name>
</atom:author>
<atom:id>[searchfeed:scopes]</atom:id>
<atom:updated>2013-01-14T14:01:01.837Z</atom:updated>
<atom:entry>
<atom:title>All Sources</atom:title>
<atom:summary>All Sources accessible by the user</atom:summary>
<atom:id>com.ibm.lotus.search.ALL_SOURCES</atom:id>
<opensearch:image>/wps/images/icons/scope_search_all.gif</opensearch:image>
</atom:entry>
<atom:entry>
<atom:title>Managed Web Content</atom:title>
<atom:summary>Search in WCM</atom:summary>
<atom:id>com.ibm.lotus.search.MANAGEDWEB</atom:id>
<opensearch:image>/wps/images/icons/scope_search_wcm.gif</opensearch:image>
</atom:entry><atom:entry>
...
</atom:feed>