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

Commit

Permalink
Sense: add _flush api
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Nov 17, 2014
1 parent 9955f40 commit 8d517f7
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion sense/app/kb/api_1_0/indices.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,23 @@ define(function () {

return function init(api) {
api.addEndpointDescription('_refresh', {
methods: ['POST']
methods: ['POST'],
patterns: [
"_refresh",
"{indices}/_refresh"
],
});

api.addEndpointDescription('_flush', {
methods: ['POST'],
patterns: [
"_flush",
"{indices}/_flush"
],
url_params: {
wait_if_ongoing: [ true, false],
force: [true, false]
}
});

api.addEndpointDescription('_stats', {
Expand Down

0 comments on commit 8d517f7

Please sign in to comment.