Path¶
It’s basically the URL you want to define for your route.
1 2 3 4 5 | demo_clients-index:
path: api/demo/clients
controller: LMS\Demo\Controller\ClientApiController::index
defaults:
plugin: ClientApi
|
Tip
Required: Yes
Example request¶
curl --location --request GET 'https://demo.ddev.site/api/demo/clients' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'