Skip to content
This repository has been archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #16 from brwe/cat-nodeattrs
Browse files Browse the repository at this point in the history
add autocomplete for _cat/nodeattrs
  • Loading branch information
brwe committed Sep 18, 2015
2 parents 91ffb5e + 519dd34 commit 525291e
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions public/webpackShims/kb/api_2_0/cat.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,20 @@ define(['vendor/_'], function (_) {
patterns: patterns || [endpoint]
});
}

function addNodeattrsCat(api) {
api.addEndpointDescription('_cat/nodeattrs', {
methods: ['GET'],
patterns: [
"_cat/nodeattrs"
],
url_params: {
help: "__flag__",
v: "__flag__",
h: ["node", "name", "id", "nodeId", "pid", "p", "host", "h", "ip", "i", "port", "po", "attr", "attr.name", "value", "attr.value"]
}
});
}

return function init(api) {
addSimpleCat('_cat/aliases', api);
Expand All @@ -59,5 +73,6 @@ define(['vendor/_'], function (_) {
addSimpleCat('_cat/shards', api);
addSimpleCat('_cat/plugins', api);
addSimpleCat('_cat/segments', api);
addNodeattrsCat(api);
};
});

0 comments on commit 525291e

Please sign in to comment.