prefix endpoints with _
Original commit: elastic/x-pack-elasticsearch@b300803aa5
This commit is contained in:
parent
021974fb22
commit
5a63b6bb8b
|
@ -26,7 +26,7 @@ public class RestDeleteLicenseAction extends BaseRestHandler {
|
|||
@Inject
|
||||
public RestDeleteLicenseAction(Settings settings, RestController controller, Client client) {
|
||||
super(settings, controller, client);
|
||||
controller.registerHandler(DELETE, "/licenses/{features}", this);
|
||||
controller.registerHandler(DELETE, "/_licenses/{features}", this);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ public class RestGetLicenseAction extends BaseRestHandler {
|
|||
@Inject
|
||||
public RestGetLicenseAction(Settings settings, RestController controller, Client client) {
|
||||
super(settings, controller, client);
|
||||
controller.registerHandler(GET, "/licenses", this);
|
||||
controller.registerHandler(GET, "/_licenses", this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -25,8 +25,8 @@ public class RestPutLicenseAction extends BaseRestHandler {
|
|||
@Inject
|
||||
public RestPutLicenseAction(Settings settings, RestController controller, Client client) {
|
||||
super(settings, controller, client);
|
||||
controller.registerHandler(PUT, "/licenses", this);
|
||||
controller.registerHandler(POST, "/licenses", this);
|
||||
controller.registerHandler(PUT, "/_licenses", this);
|
||||
controller.registerHandler(POST, "/_licenses", this);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue