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

minor change

parent 4b805849
Branches
No related tags found
No related merge requests found
Pipeline #204695 passed
...@@ -38,7 +38,7 @@ class GetAttendeesByCourse extends AbstractController ...@@ -38,7 +38,7 @@ class GetAttendeesByCourse extends AbstractController
$maxNumItemsPerPage = Pagination::getMaxNumItemsPerPage($query); $maxNumItemsPerPage = Pagination::getMaxNumItemsPerPage($query);
return new PartialPaginator($this->coursesProvider->getAttendeesByCourse($identifier, return new PartialPaginator($this->coursesProvider->getAttendeesByCourse($identifier,
Pagination::getCurrentPageNumber($query), Pagination::getMaxNumItemsPerPage($query), $options), $currentPageNumber, $maxNumItemsPerPage, $options),
$currentPageNumber, $maxNumItemsPerPage); $currentPageNumber, $maxNumItemsPerPage);
} }
} }
...@@ -9,7 +9,7 @@ use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse; ...@@ -9,7 +9,7 @@ use Dbp\Relay\BaseCourseBundle\Controller\GetAttendeesByCourse;
use Symfony\Component\Serializer\Annotation\Groups; use Symfony\Component\Serializer\Annotation\Groups;
/** /**
* Currently disabled: * Currently disabled (privacy of students not clarified):
* ApiResource( * ApiResource(
* collectionOperations={ * collectionOperations={
* "get" = { * "get" = {
...@@ -35,8 +35,6 @@ use Symfony\Component\Serializer\Annotation\Groups; ...@@ -35,8 +35,6 @@ use Symfony\Component\Serializer\Annotation\Groups;
* "summary" = "Get the attendees of a course.", * "summary" = "Get the attendees of a course.",
* "parameters" = { * "parameters" = {
* {"name" = "identifier", "in" = "path", "description" = "Resource identifier", "required" = true, "type" = "string", "example" = "257571"}, * {"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"}
* } * }
* } * }
* } * }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment