Add REST point names

Relates to elastic/elasticsearch#24169

Original commit: elastic/x-pack-elasticsearch@d18a24a035
This commit is contained in:
Igor Motov 2017-06-13 11:35:46 -04:00
parent 3502a9901b
commit 0de8cf47b1
2 changed files with 10 additions and 0 deletions

View File

@ -38,6 +38,11 @@ public class RestIndexUpgradeAction extends BaseRestHandler {
this.extraParameters = extraParameters;
}
@Override
public String getName() {
return "xpack_migration_upgrade";
}
@Override
public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {
if (request.method().equals(RestRequest.Method.POST)) {

View File

@ -32,6 +32,11 @@ public class RestIndexUpgradeInfoAction extends BaseRestHandler {
}
@Override
public String getName() {
return "xpack_migration_assistance";
}
@Override
public RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {
if (request.method().equals(RestRequest.Method.GET)) {