Developer Corner

To implement an endpoint into your own extension, you have to implement the EndpointInterface

class MyEndpoint implements \Infonique\Newt\NewtApi\EndpointInterface
{
   // implement the interface here
}

As an example, please see EXT:newt4news/Classes/Newt/NewsEndpoint

If your endpoint needs some additional options, you have to implement the EndpointOptionsInterface

class MyEndpoint implements \Infonique\Newt\NewtApi\EndpointInterface, \Infonique\Newt\NewtApi\EndpointOptionsInterface
{
   // implement the interface here
}

As an example, please see EXT:newt4dce/Classes/Newt/DceEndpoint

For the Extension to know the available endpoint-implementations you have to add this Hook into your ext_localconf.php:

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['Newt']['Implementation'][] = \Infonique\Newt4News\Newt\NewsEndpoint::class;