I need to create a plugin that should make call outs to external endpoints. Where is the best place to write this code? I started writing it in MyPluginComponentImpl.java. Is it ok to write code there?
The idea is to make a POST call to one endpoint for installation and another for POST for enable. Also are there event handlers for these events? I'm doing this for the first time, any help would be appreciated.