The public function run() is mandatory for any API class that extends the \PCT\CustomCatalog\API\Base class.
It is recommended to extend the \PCT\CustomCatalog\API\Base class for any main API class. The base class provides many prebuilt methods to rely on when building your own api.