forked from jaeksoft/opensearchserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Index list
AlexandreToyer edited this page Sep 30, 2013
·
4 revisions
This API returns the index list
Requirement: OpenSearchServer v1.5
URL: /services/rest/index
Method: GET
Header (optional returned type):
- Accept:
application/json - Accept:
application/xml
The index list is returned in JSON or XML format
HTTP code: 200
Content (application/json):
{
"result": {
"@successful": "true",
"info": "6 index(es)",
"indexList": [
"dbpedia_abstract",
"nodes",
"smb",
"test",
"test_oss_rb",
"web"
]
}
}The index list was not returned. The reason is provided in the content.
HTTP code: 500
Content (text/plain):
An internal error occurred
Using CURL:
curl -XGET http://localhost:8080/services/rest/indexUsing jQuery:
$.ajax({
type: "GET",
dataType: "json",
url: "http://localhost:8080/services/rest/index"
}).done(function (data) {
console.log(data);
});