rdv: add user calendar endpoint + add this calendar in the calendar

This commit is contained in:
nobohan
2021-08-18 23:16:52 +02:00
parent dbf72774c2
commit 7c4f976230
8 changed files with 105 additions and 23 deletions

View File

@@ -75,6 +75,27 @@ class ChillCalendarExtension extends Extension implements PrependExtensionInterf
]
],
]
],
[
'controller' => \Chill\CalendarBundle\Controller\CalendarAPIController::class,
'class' => \Chill\CalendarBundle\Entity\Calendar::class,
'name' => 'calendar',
'base_path' => '/api/1.0/calendar/calendar',
'base_role' => 'ROLE_USER',
'actions' => [
'_index' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true
],
],
'_entity' => [
'methods' => [
Request::METHOD_GET => true,
Request::METHOD_HEAD => true
]
],
]
]
]
]);