Hello Gustavo,
I don't think a new Controller is needed for something like this, simply a new API if you would like to create a PR for one within the events controller.
But even that, there is a nice solution for your issue already in MISP that you might want to look into (and I am sorry for this not being better documented):
You can filter the event index via parameters and receive a JSON back with the event metadata as a response.
So if you would like to receive a list of all event metadata that contains the word "locky", then you can POST the following message to MISP:
Headers:
Authorization: <Your API key>
Content-type: application/json
Accept: application/json
Body:
{"searcheventinfo":"Locky"}
The JSON in the body can include any of the search parameters used by the filter tool on the UI (click the little magnifying glass).
Let me know if you have any other questions!
Best regards,
Andras