Skip to content

Commit

Permalink
Add _open and _close autosuggestions for indices in console (#10867)
Browse files Browse the repository at this point in the history
Backports PR #10614

**Commit 1:**
Add _open and _close autosuggestions for indices in console

* Original sha: 3a5347e
* Authored by Richard Hoffman <coverslide@gmail.com> on 2017-02-28T08:46:29Z
  • Loading branch information
elastic-jasper authored and epixa committed Mar 23, 2017
1 parent 613a745 commit 74ba30d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/core_plugins/console/api_server/es_5_0/indices.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,4 +217,18 @@ module.exports = function (api) {
"{indices}/_upgrade"
]
});

api.addEndpointDescription('_close', {
methods: ["POST"],
patterns: [
"{indices}/_close"
]
});

api.addEndpointDescription('_open', {
methods: ["POST"],
patterns: [
"{indices}/_open"
]
});
};

0 comments on commit 74ba30d

Please sign in to comment.