Add _xpack prefix to license endpoints

Original commit: elastic/x-pack-elasticsearch@7af3ea2450
This commit is contained in:
Areek Zillur 2016-05-24 11:15:25 -04:00
parent 26a07766f0
commit 352cd80c2c
6 changed files with 10 additions and 10 deletions

View File

@ -23,7 +23,7 @@ public class RestDeleteLicenseAction extends BaseRestHandler {
@Inject
public RestDeleteLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, client);
controller.registerHandler(DELETE, "/_license", this);
controller.registerHandler(DELETE, "/_xpack/license", this);
}
@Override

View File

@ -34,7 +34,7 @@ public class RestGetLicenseAction extends BaseRestHandler {
@Inject
public RestGetLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, client);
controller.registerHandler(GET, "/_license", this);
controller.registerHandler(GET, "/_xpack/license", this);
}
/**

View File

@ -30,8 +30,8 @@ public class RestPutLicenseAction extends BaseRestHandler {
@Inject
public RestPutLicenseAction(Settings settings, RestController controller, Client client) {
super(settings, client);
controller.registerHandler(PUT, "/_license", this);
controller.registerHandler(POST, "/_license", this);
controller.registerHandler(PUT, "/_xpack/license", this);
controller.registerHandler(POST, "/_xpack/license", this);
}
@Override

View File

@ -3,8 +3,8 @@
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
"methods": ["DELETE"],
"url": {
"path": "/_license",
"paths": ["/_license"],
"path": "/_xpack/license",
"paths": ["/_xpack/license"],
"parts" : {}
},
"body": null

View File

@ -3,8 +3,8 @@
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
"methods": ["GET"],
"url": {
"path": "/_license",
"paths": ["/_license"],
"path": "/_xpack/license",
"paths": ["/_xpack/license"],
"parts" : {
},
"params": {

View File

@ -3,8 +3,8 @@
"documentation": "https://www.elastic.co/guide/en/shield/current/license-management.html",
"methods": ["PUT", "POST"],
"url": {
"path": "/_license",
"paths": ["/_license"],
"path": "/_xpack/license",
"paths": ["/_xpack/license"],
"parts" : {
},
"params": {