diff --git a/src/Entity/Course.php b/src/Entity/Course.php index 1c6ceea25ed220b6d43c5a7e8c5a956aab92e1ee..7d27ccfe7a0bab560a1640831db36e67e7e03c74 100644 --- a/src/Entity/Course.php +++ b/src/Entity/Course.php @@ -13,6 +13,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * @ApiResource( * collectionOperations={ * "get" = { + * "path" = "/base/courses", * "openapi_context" = { * "tags" = {"Courses"}, * "parameters" = { @@ -54,9 +55,11 @@ use Symfony\Component\Serializer\Annotation\Groups; * }, * itemOperations={ * "get" = { + * "path" = "/base/courses/{identifier}", * "openapi_context" = { * "tags" = {"Courses"}, * "parameters" = { + * {"name" = "identifier", "in" = "path", "description" = "Id of course", "required" = true, "type" = "string", "example" = "257571"}, * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"} * } * } diff --git a/src/Entity/CourseAttendee.php b/src/Entity/CourseAttendee.php index 2e668c848d0169a90ebfe46bfb71f291ef86fa6f..a2eb29ceb4e540b0899be85cc60a829a0499cff2 100644 --- a/src/Entity/CourseAttendee.php +++ b/src/Entity/CourseAttendee.php @@ -22,7 +22,7 @@ use Symfony\Component\Serializer\Annotation\Groups; * }, * "get_bycourse" = { * "method" = "GET", - * "path" = "/courses/{identifier}/attendees", + * "path" = "/base/courses/{identifier}/attendees", * "controller" = GetAttendeesByCourse::class, * "read" = false, * "normalization_context" = {