Skip to content
Snippets Groups Projects
Commit 4dc38db1 authored by Marcus Eibrink-Lunzenauer's avatar Marcus Eibrink-Lunzenauer
Browse files

allow `page` URL params, fixes #327

parent 05560ca5
No related branches found
No related tags found
No related merge requests found
Pipeline #387 passed
......@@ -14,6 +14,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
*/
class BlocksIndex extends JsonApiController
{
protected $allowedPagingParameters = ['offset', 'limit'];
protected $allowedIncludePaths = [
'container',
'owner',
......
......@@ -14,6 +14,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
*/
class ChildrenOfStructuralElementsIndex extends JsonApiController
{
protected $allowedPagingParameters = ['offset', 'limit'];
protected $allowedIncludePaths = ['containers', 'course', 'owner', 'editor', 'parent'];
/**
......
......@@ -14,6 +14,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
*/
class ContainersIndex extends JsonApiController
{
protected $allowedPagingParameters = ['offset', 'limit'];
protected $allowedIncludePaths = [
'blocks',
'blocks.edit-blocker',
......
......@@ -14,6 +14,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
*/
class DescendantsOfStructuralElementsIndex extends JsonApiController
{
protected $allowedPagingParameters = ['offset', 'limit'];
protected $allowedIncludePaths = [
'containers',
'course',
......
......@@ -13,6 +13,8 @@ use Psr\Http\Message\ServerRequestInterface as Request;
*/
class StructuralElementsIndex extends JsonApiController
{
protected $allowedPagingParameters = ['offset', 'limit'];
protected $allowedIncludePaths = [
'ancestors',
'containers',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment