Remove ControlBusController.getCommandsForBean

The extra REST API to get commands for specific bean does not make sense.
Exactly same data can be extracted from the JSON returned by the `getCommands` REST API
This commit is contained in:
Artem Bilan
2024-08-20 10:43:53 -04:00
parent 7c42402b9a
commit 6641cf8e21
3 changed files with 18 additions and 41 deletions

View File

@@ -69,8 +69,6 @@ The `/control-bus` GET request returns all the control bus commands for the appl
Essentially, a JSON-serialized list of `ControlBusController.ControlBusBean` instances.
Each entry is a bean with a list of control bus eligible methods (see `ControlBusMethodFilter` for more information) with their parameter types and description from the `@ManagedOperation` or `@ManagedAttribute` (falls back to method name otherwise).
The GET method of this REST controller for `/control-bus/\{beanName}` returns commands for specific bean.
The POST method to `/control-bus/{beanName.methodName}` invokes the command.
The body of the request may contain a list of values and their types for command to execute.
For example, the `operation` command with `int` argument for the class: