diff --git a/src/Controller/GetAttendeesByCourse.php b/src/Controller/GetAttendeesByCourse.php index dd51ce12392e7ec51741192088ac18cfa62f273c..bb92f67cbc492c0fead08882cd1ec306cd910420 100644 --- a/src/Controller/GetAttendeesByCourse.php +++ b/src/Controller/GetAttendeesByCourse.php @@ -38,7 +38,7 @@ class GetAttendeesByCourse extends AbstractController $maxNumItemsPerPage = Pagination::getMaxNumItemsPerPage($query); return new PartialPaginator($this->coursesProvider->getAttendeesByCourse($identifier, - Pagination::getCurrentPageNumber($query), Pagination::getMaxNumItemsPerPage($query), $options), + $currentPageNumber, $maxNumItemsPerPage, $options), $currentPageNumber, $maxNumItemsPerPage); } } diff --git a/src/Entity/CourseAttendee.php b/src/Entity/CourseAttendee.php index 7b5c731a6050c186cb35c8b85cda96740bae9fd0..bba1870ddd4051d3460907959ccec28c0485100d 100644 --- a/src/Entity/CourseAttendee.php +++ b/src/Entity/CourseAttendee.php @@ -9,7 +9,7 @@ use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse; use Symfony\Component\Serializer\Annotation\Groups; /** - * Currently disabled: + * Currently disabled (privacy of students not clarified): * ApiResource( * collectionOperations={ * "get" = { @@ -35,8 +35,6 @@ use Symfony\Component\Serializer\Annotation\Groups; * "summary" = "Get the attendees of a course.", * "parameters" = { * {"name" = "identifier", "in" = "path", "description" = "Resource identifier", "required" = true, "type" = "string", "example" = "257571"}, - * {"name" = "lang", "in" = "query", "description" = "Language of result", "type" = "string", "enum" = {"de", "en"}, "example" = "de"}, - * {"name" = "partialPagination", "in" = "query", "description" = "Enable partial pagination", "type" = "bool", "example" = "false"} * } * } * }