Opensearch search API
Introduction
This section describes how to search products from REGARDS meta catalog with OpenSearch API.
Open Search API with parameter, time and geo extensions returning standard ATOM response or GeoJSON feature collection and exposing an Open Search description.
Open search engine is not available by default and has to be configured.
REST API
How to
The Regards REST API concept describes how REST interfaces must be handled to submit requests.
Endpoints
Opensearch configuration is accessible form the Administration Interface.
This configration is divided in 3 parts
Link opensearch engine to catalog data. You can associate the opensearch engine to all the REGARDS catalog or associate it to one specific dataset.Configure opensearch responses headers.Configure opensearch parameters. Here you can define specific opensearch parameters.
General
By default, all REGARDS parameters are defined by without any needed configuration. Configure one or many of the regards parameters allow to define the generation of possible values in opensearch descriptor file.
Time extension configuration
To be able to use the opensearch time extension you have to configure the opensearch engine to define the two standard
parameters "start" and "end".
To do so, follow the here under example :
- Define [time.start] parameterGET |
Alias : timeStart
Name : start
Namespace : time
full json path of associated REGARDS attribute : properties.date
- Define [time.end] parameter
Alias : timeEnd
Name : end
Namespace : time
full json path of associated REGARDS attribute : properties.date
properties.date must be replaced by the date attribute to use in the configured REGARDS catalog.
Configure possible values of attributes in opensearch descriptor
To do so, you have to configure the parameters to enable the possible value generation and the value number limit.
Name : parameter1
Namespace : regards
Enable generation of possible values : true
Limit number of possible values : 100
full json path of associated REGARDS attribute : properties.parameter1