Plugin

Contains the plugin name from ext_localconf.php.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
use LMS\Demo\Controller\ClientApiController;

\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
    'Demo',
    'Client',
    [
        ClientApi::class => 'index'
    ],
    [
        ClientApi::class => 'index'
    ]
);
1
2
3
4
5
demo_clients-index:
   path:         api/demo/clients
   controller:   LMS\Demo\Controller\ClientApiController::index
   defaults:
     plugin:     Client

Example request

curl --location --request GET 'https://demo.ddev.site/api/demo/clients' \
    --header 'Content-Type: application/json' \
    --header 'Accept: application/json'