forked from jaeksoft/opensearchserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Authentication
Emmanuel Keller edited this page Sep 4, 2013
·
3 revisions
If you created a user, each API call requires to pass a login and an API key.
Users can be created in tab Privileges in OpenSearchServer interface. API keys are automatically generated.
URL parameters:
- login (required): Login of the user
- key (required): API key generated for this login
- List indexes:
curl -XGET http://localhost:8080/services/rest/index?login=lorem&key=08762e43getye0042f875e86eaiu687f
- Update document in JSON:
curl -XPUT -H "Content-Type: application/json" \
-d '[{"lang": "ENGLISH","fields": [{ "name": "id", "value": 1 }]}]' \
http://localhost:8080/services/rest/index/my_index/document?login=lorem&key=08762e43getye0042f875e86eaiu687f