+

Search Tips   |   Advanced Search

Seedlist 1.0 REST service API

The Web Content Manager API for retrieving application content through a seedlist is based on the REST architecture style. To obtain seedlist content, third party crawlers or administrator applications need to construct and send only HTTP requests to the application servlet.

All REST API requests are synchronous calls. The order of the parameters in the requests does not matter. The parameter names are case-sensitive and must be entered in the format described here. An HTTP error response (for example, status code 404) is generated in the following situations:

The request is a standard HTTP GET command. The URL is formed by combining the seedlist servlet host name, port number, and path, followed by a collection of input parameters separated by ampersand (&) characters. The input parameters are entered as name-value pairs.

For example:

http://host_name:port_number/wps/seedlist/myserver?SeedlistId=library_list&Source=com.ibm.workplace.wcm.plugins.seedlist.retriever.WCMRetrieverFactory&Action=action&Range=number_of_entries


Examples

In these examples, replace the following variables with values that are appropriate for the environment:

For the SeedlistId parameter, we can specify the value in the following formats:

Important: We can access the REST API for the Web Content Manager search seedlist 1.0 with a secured connection (HTTPS) or with an unsecured connection (HTTP). Depending on the method, ensure that we use the correct port. However, if you access this REST API with an unsecured connection, we are automatically redirected to a secured connection.

Parameter Default Description
SeedlistID No default; must be specified. Identifies the seedlist. This parameter can be specified in the following ways:

  • An empty value causes all libraries to be used.

  • A specific library (for example, library1)

  • A specific site area (for example, site_area1)

  • A list of libraries, separated by commas (for example, library1,library2,library3)

  • The JCRID of a site area

Start 0 Defines the start number for currently returned section.
Range 100 Defines the number of returned entries for current section.
Date No default. If not specified, all applicable results are returned. Indicates that entries (documents) that were updated after this date are retrieved. The date format (compliant to standard ISO 8601) is the following : dateTtimezone, where date is yyyy-MM-dd, time is HH:mm:ss, and zone is ±hhmm. This format includes time zone information, which is critical if the client and server are in different time zones.

Important: Proper HTML URL encoding must be performed (for example, represent the plus symbol + as %2B).

Action GetDocuments Defines requested action to execute.

  • GetDocuments retrieve all underlying documents.

  • GetNumberOfDocuments returns the number of all underlying documents, typically for debug purposes. This value must be the same as the number of all documents returned from an appropriate GetDocuments request.

Format ATOM Defines the output format : ATOM / HTML/ XML.
Timestamp No default. Indicates the content provider timestamp from a previous crawling session. The timestamp represents for the content provider some snapshot of the content and allows the crawler to get only the content changes on the next crawling. This parameter is used for incremental crawling.


Parent: Use the search seedlist 1.0 format