dev/endpoints/endpoint_get_AAAAA/endpoint_get_AAAAA.routing.yml
2024-03-28 12:58:52 +02:00

44 lines
1.0 KiB
YAML

endpoint_get_AAAAA.node:
path: '/api/{lang}/AAAAA/{alias}'
defaults:
_controller:
'Drupal\endpoint_get_AAAAA\Controller\NodeController::getNode'
methods: [GET]
requirements:
_access: 'TRUE'
options:
no_cache: 'TRUE'
endpoint_get_AAAAA.nodes:
path: '/api/{lang}/AAAAAs'
defaults:
_controller:
'Drupal\endpoint_get_AAAAA\Controller\NodesController::getNodes'
methods: [GET]
requirements:
_access: 'TRUE'
options:
no_cache: 'TRUE'
# endpoint_get_AAAAA.categories:
# path: '/api/{lang}/AAAAAs/categories'
# defaults:
# _controller:
# 'Drupal\endpoint_get_AAAAA\Controller\CategoryController::getCategories'
# methods: [GET]
# requirements:
# _access: 'TRUE'
# options:
# no_cache: 'TRUE'
# endpoint_get_AAAAA.nodes_category:
# path: '/api/{lang}/AAAAAs/categories/{category}'
# defaults:
# _controller:
# 'Drupal\endpoint_get_AAAAA\Controller\NodesController::getNodes'
# methods: [GET]
# requirements:
# _access: 'TRUE'
# options:
# no_cache: 'TRUE'