This PR includes several improvements to the Command Manager plugin:
Apply Restful conventions to the API endpoint. The endpoint now includes the resource in the path (/_plugins/_command-manager/commands).
Replace _commandmanager with _command-manager to improve readability.
Extract the handling of POST requests to a dedicated method.
Add API spec in OpenAPI format.
Rename logger to log for consistency and simplicity. log is a verb, while logger is a noun. Using log.[info|warn|error|debug]() is better as it explicitly implies the action being done.
Add timeout to the HttpRestClient.
More and better logging.
Implement a test cycle. Commands received through the API are sent back using the HttpRestClient.
Description
This PR includes several improvements to the Command Manager plugin:
/_plugins/_command-manager/commands
)._commandmanager
with_command-manager
to improve readability.logger
tolog
for consistency and simplicity.log
is a verb, whilelogger
is a noun. Usinglog.[info|warn|error|debug]()
is better as it explicitly implies the action being done.Issues Resolved
Closes #107