From 942599fc6aea1923f80c532593f896195437b9c3 Mon Sep 17 00:00:00 2001 From: Tobias Gross-Vogt <tgros@tugraz.at> Date: Wed, 2 Mar 2022 09:44:16 +0100 Subject: [PATCH] path: courses -> base/courses --- src/Entity/Course.php | 3 +++ src/Entity/CourseAttendee.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Entity/Course.php b/src/Entity/Course.php index 1c6ceea..7d27ccf 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 2e668c8..a2eb29c 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" = { -- GitLab