Skip to content
Snippets Groups Projects
Commit 1d3b3029 authored by Tobias Gross-Vogt's avatar Tobias Gross-Vogt
Browse files

tags Courses -> BaseCourse

parent a0499e7c
No related branches found
No related tags found
No related merge requests found
Pipeline #89749 passed
...@@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -15,7 +15,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "get" = { * "get" = {
* "path" = "/base/courses", * "path" = "/base/courses",
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"}, * "tags" = {"BaseCourse"},
* "parameters" = { * "parameters" = {
* {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}, * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"},
* {"name" = "term", "in" = "query", "description" = "Teaching term", "type" = "string", "enum" = {"W", "S"}, "example" = "W"}, * {"name" = "term", "in" = "query", "description" = "Teaching term", "type" = "string", "enum" = {"W", "S"}, "example" = "W"},
...@@ -28,7 +28,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -28,7 +28,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "controller" = GetCoursesByOrganization::class, * "controller" = GetCoursesByOrganization::class,
* "read" = false, * "read" = false,
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"}, * "tags" = {"BaseCourse"},
* "summary" = "Get the Courses related to an organization.", * "summary" = "Get the Courses related to an organization.",
* "parameters" = { * "parameters" = {
* {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}, * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"},
...@@ -43,7 +43,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -43,7 +43,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "controller" = GetCoursesByPerson::class, * "controller" = GetCoursesByPerson::class,
* "read" = false, * "read" = false,
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"}, * "tags" = {"BaseCourse"},
* "summary" = "Get the Courses related to a person.", * "summary" = "Get the Courses related to a person.",
* "parameters" = { * "parameters" = {
* {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}, * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"},
...@@ -57,7 +57,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -57,7 +57,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "get" = { * "get" = {
* "path" = "/base/courses/{identifier}", * "path" = "/base/courses/{identifier}",
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"}, * "tags" = {"BaseCourse"},
* "parameters" = { * "parameters" = {
* {"name" = "identifier", "in" = "path", "description" = "Id of course", "required" = true, "type" = "string", "example" = "257571"}, * {"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"} * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}
...@@ -66,7 +66,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -66,7 +66,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* } * }
* }, * },
* iri="https://schema.org/Course", * iri="https://schema.org/Course",
* normalizationContext={"groups" = {"Course:output"}, "jsonld_embed_context" = true}, * normalizationContext={"groups" = {"BaseCourse:output"}, "jsonld_embed_context" = true},
* ) * )
*/ */
class Course implements CourseInterface class Course implements CourseInterface
......
...@@ -17,7 +17,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -17,7 +17,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "path" = "/course_attendees", * "path" = "/course_attendees",
* "security" = "is_granted('IS_AUTHENTICATED_FULLY')", * "security" = "is_granted('IS_AUTHENTICATED_FULLY')",
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"} * "tags" = {"BaseCourse"}
* } * }
* }, * },
* "get_bycourse" = { * "get_bycourse" = {
...@@ -31,7 +31,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -31,7 +31,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "groups" = {"BasePerson:output"} * "groups" = {"BasePerson:output"}
* }, * },
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"}, * "tags" = {"BaseCourse"},
* "summary" = "Get the attendees of a course.", * "summary" = "Get the attendees of a course.",
* "parameters" = { * "parameters" = {
* {"name" = "identifier", "in" = "path", "description" = "Id of course", "required" = true, "type" = "string", "example" = "123456"}, * {"name" = "identifier", "in" = "path", "description" = "Id of course", "required" = true, "type" = "string", "example" = "123456"},
...@@ -45,7 +45,7 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -45,7 +45,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "path" = "/course_attendees/{identifier}", * "path" = "/course_attendees/{identifier}",
* "security" = "is_granted('IS_AUTHENTICATED_FULLY')", * "security" = "is_granted('IS_AUTHENTICATED_FULLY')",
* "openapi_context" = { * "openapi_context" = {
* "tags" = {"Courses"} * "tags" = {"BaseCourse"}
* } * }
* } * }
* }, * },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment