[License] Fix expected endpoint from [_xpack/_license] to [_xpack/license]

Original commit: elastic/x-pack-elasticsearch@7a48bc674c
This commit is contained in:
Chris Earle 2016-07-13 16:06:02 -04:00
parent 2c3a0db9ec
commit 870a855827
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ public class RestDeleteLicenseAction extends XPackRestHandler {
public RestDeleteLicenseAction(Settings settings, RestController controller) {
super(settings);
// @deprecated Remove deprecations in 6.0
controller.registerWithDeprecatedHandler(DELETE, URI_BASE + "/_license", this,
controller.registerWithDeprecatedHandler(DELETE, URI_BASE + "/license", this,
DELETE, "/_license", deprecationLogger);
// Remove _licenses support entirely in 6.0

View File

@ -35,7 +35,7 @@ public class RestGetLicenseAction extends XPackRestHandler {
public RestGetLicenseAction(Settings settings, RestController controller) {
super(settings);
// @deprecated Remove deprecations in 6.0
controller.registerWithDeprecatedHandler(GET, URI_BASE + "/_license", this,
controller.registerWithDeprecatedHandler(GET, URI_BASE + "/license", this,
GET, "/_license", deprecationLogger);
// Remove _licenses support entirely in 6.0

View File

@ -31,9 +31,9 @@ public class RestPutLicenseAction extends XPackRestHandler {
public RestPutLicenseAction(Settings settings, RestController controller) {
super(settings);
// @deprecated Remove deprecations in 6.0
controller.registerWithDeprecatedHandler(POST, URI_BASE + "/_license", this,
controller.registerWithDeprecatedHandler(POST, URI_BASE + "/license", this,
POST, "/_license", deprecationLogger);
controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/_license", this,
controller.registerWithDeprecatedHandler(PUT, URI_BASE + "/license", this,
PUT, "/_license", deprecationLogger);
// Remove _licenses support entirely in 6.0