Add _xpack prefix to license endpoints
Original commit: elastic/x-pack-elasticsearch@7af3ea2450
This commit is contained in:
parent
26a07766f0
commit
352cd80c2c
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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": {
|
||||
|
|
|
@ -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": {
|
||||
|
|
Loading…
Reference in New Issue