wazuh / wazuh-indexer-plugins

GNU Affero General Public License v3.0
1 stars 3 forks source link

Command Manager API is not Restful #107

Closed AlexRuiz7 closed 1 month ago

AlexRuiz7 commented 1 month ago

Description

The Command Manager API currently exposes a single endpoint that listens to POST request on the /_plugins/_commandmanager path. This endpoint does not completely fit the Restful conventions as there is explicit mention to the resource, in this case commands.

We need to add the resource as part of the endpoint path, and manage it consistently. Also, we can improve the readability of the plugin base URI.

https://restfulapi.net/resource-naming/