[SPEC] Moved the cat API into its own namespace and added missing qs params

This commit is contained in:
Clinton Gormley 2014-01-16 17:06:03 +01:00
parent 84e2e1c177
commit 04b6dd9d0c
9 changed files with 307 additions and 10 deletions

View File

@ -0,0 +1,41 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/aliases",
"paths": ["/_cat/aliases", "/_cat/aliases/{alias}"],
"parts": {
"alias": {
"type" : "list",
"description" : "A comma-separated list of alias names to return"
}
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -3,23 +3,20 @@
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat",
"paths": ["/_cat/aliases", "/_cat/aliases/{alias}", "/_cat/allocation", "/_cat/allocation/{nodes}", "/_cat", "/_cat/health", "/_cat/indices", "/_cat/indices/{index}", "/_cat/master", "/_cat/nodes", "/_cat/pending_tasks", "/_cat/shards", "/_cat/shards/{index}"],
"path": "/_cat/allocation",
"paths": ["/_cat/allocation", "/_cat/allocation/{nodes}"],
"parts": {
"alias": {
"type" : "list",
"description" : "A comma-separated list of alias names to return"
},
"nodes": {
"type": "list",
"description": "A comma-separated list of node IDs or names to limit the returned information"
},
"index": {
"type" : "list",
"description": "A comma-separated list of index names to limit the returned information"
}
},
"params": {
"bytes": {
"type": "enum",
"description" : "The unit in which to display byte values",
"options": [ "b", "k", "m", "g" ]
},
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
@ -29,6 +26,10 @@
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false

View File

@ -0,0 +1,37 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/health",
"paths": ["/_cat/health"],
"parts": {
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,20 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat",
"paths": ["/_cat"],
"parts": {
},
"params": {
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,46 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/indices",
"paths": ["/_cat/indices", "/_cat/indices/{index}"],
"parts": {
"index": {
"type" : "list",
"description": "A comma-separated list of index names to limit the returned information"
}
},
"params": {
"bytes": {
"type": "enum",
"description" : "The unit in which to display byte values",
"options": [ "b", "k", "m", "g" ]
},
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,37 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/master",
"paths": ["/_cat/master"],
"parts": {
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,37 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/nodes",
"paths": ["/_cat/nodes"],
"parts": {
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,37 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/pending_tasks",
"paths": ["/_cat/pending_tasks"],
"parts": {
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}

View File

@ -0,0 +1,41 @@
{
"cat": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat.html",
"methods": ["GET"],
"url": {
"path": "/_cat/shards",
"paths": ["/_cat/shards", "/_cat/shards/{index}"],
"parts": {
"index": {
"type" : "list",
"description": "A comma-separated list of index names to limit the returned information"
}
},
"params": {
"local": {
"type" : "boolean",
"description" : "Return local information, do not retrieve the state from master node (default: false)"
},
"master_timeout": {
"type" : "time",
"description" : "Explicit operation timeout for connection to master node"
},
"h": {
"type": "list",
"description" : "Comma-separated list of column names to display"
},
"help": {
"type": "boolean",
"description": "Return help information",
"default": false
},
"v": {
"type": "boolean",
"description": "Verbose mode. Display column headers",
"default": false
}
}
},
"body": null
}
}