[MXS-2056] Allow module commands from resource endpoints Created: 2018-09-17 Updated: 2023-05-08 Resolved: 2021-05-05 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | REST-API |
| Affects Version/s: | None |
| Fix Version/s: | Icebox |
| Type: | New Feature | Priority: | Minor |
| Reporter: | markus makela | Assignee: | markus makela |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Epic Link: | API Improvements |
| Description |
|
Currently the module commands are available from the v1/maxscale endpoint and require an explicit instance as the first parameter. By allowing calls to e.g. v1/monitors/MariaDB-Monitor/failover, the explicit first parameter can be deduced from the URL. This makes the use of module commands much more intuitive and less verbose. |
| Comments |
| Comment by markus makela [ 2021-05-05 ] |
|
I'll just close this as it's not something anyone has ever asked for. One could even argue that the URLs should be static with regards to the "types" they provide. Implementing it like this might make sense from an object-oriented view but for an API it doesn't seem that consistent. |