Skip to content

Commit

Permalink
KB - added the upgrade API
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Oct 28, 2015
1 parent e32c71a commit 4205372
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
20 changes: 20 additions & 0 deletions api_server/es_1_0/indices.js
Expand Up @@ -185,4 +185,24 @@ module.exports = function (api) {
"{indices}/_status"
]
});

api.addEndpointDescription('_upgrade', {
methods: ["POST"],
patterns: [
"_upgrade",
"{indices}/_upgrade"
],
url_params: {
wait_for_completion: "__flag__"
}
});

api.addEndpointDescription('_upgrade_status', {
methods: ["GET"],
patterns: [
"_upgrade",
"{indices}/_upgrade"
]
});

};
19 changes: 19 additions & 0 deletions api_server/es_2_0/indices.js
Expand Up @@ -187,4 +187,23 @@ module.exports = function (api) {
"{indices}/_cache/clear"
]
});

api.addEndpointDescription('_upgrade', {
methods: ["POST"],
patterns: [
"_upgrade",
"{indices}/_upgrade"
],
url_params: {
wait_for_completion: "__flag__"
}
});

api.addEndpointDescription('_upgrade_status', {
methods: ["GET"],
patterns: [
"_upgrade",
"{indices}/_upgrade"
]
});
};

0 comments on commit 4205372

Please sign in to comment.