Update upgrade API endpoints (elastic/x-pack-elasticsearch#1724)

Switch from /_xpack/_upgrade to /_xpack/migration/assistance and /_xpack/migration/upgrade

Original commit: elastic/x-pack-elasticsearch@b15217135c
This commit is contained in:
Igor Motov 2017-06-23 10:31:00 -04:00
parent 0de8cf47b1
commit d2bdd99308
4 changed files with 8 additions and 8 deletions

View File

@ -34,7 +34,7 @@ public class RestIndexUpgradeAction extends BaseRestHandler {
public RestIndexUpgradeAction(Settings settings, RestController controller, Set<String> extraParameters) {
super(settings);
controller.registerHandler(RestRequest.Method.POST, "{index}/_xpack/_upgrade", this);
controller.registerHandler(RestRequest.Method.POST, "_xpack/migration/upgrade/{index}", this);
this.extraParameters = extraParameters;
}

View File

@ -26,8 +26,8 @@ public class RestIndexUpgradeInfoAction extends BaseRestHandler {
public RestIndexUpgradeInfoAction(Settings settings, RestController controller, Set<String> extraParameters) {
super(settings);
controller.registerHandler(RestRequest.Method.GET, "/_xpack/_upgrade", this);
controller.registerHandler(RestRequest.Method.GET, "{index}/_xpack/_upgrade", this);
controller.registerHandler(RestRequest.Method.GET, "/_xpack/migration/assistance", this);
controller.registerHandler(RestRequest.Method.GET, "/_xpack/migration/assistance/{index}", this);
this.extraParameters = extraParameters;
}

View File

@ -2,10 +2,10 @@
"xpack.upgrade.info": {
"methods": [ "GET" ],
"url": {
"path": "/_xpack/_upgrade",
"path": "/_xpack/migration/assistance",
"paths": [
"/_xpack/_upgrade",
"/{index}/_xpack/_upgrade"
"/_xpack/migration/assistance",
"/_xpack/migration/assistance/{index}"
],
"parts": {
"index": {

View File

@ -2,9 +2,9 @@
"xpack.upgrade": {
"methods": [ "POST" ],
"url": {
"path": "/{index}/_xpack/_upgrade",
"path": "/_xpack/migration/upgrade/{index}",
"paths": [
"/{index}/_xpack/_upgrade"
"/_xpack/migration/upgrade/{index}"
],
"parts": {
"index": {