Skip to content

Commit ff88b05

Browse files
committed
Add links = true to allow for pagination links to be included
1 parent 75a56d7 commit ff88b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Endpoint/Index.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use Closure;
66
use Psr\Http\Message\ResponseInterface as Response;
7+
use ReflectionException;
78
use RuntimeException;
89
use Tobyz\JsonApiServer\Context;
910
use Tobyz\JsonApiServer\Endpoint\Concerns\BuildsOpenApiPaths;
@@ -175,6 +176,9 @@ private function applyFilters($query, Context $context): void
175176
}
176177
}
177178

179+
/**
180+
* @throws ReflectionException
181+
*/
178182
public function getOpenApiPaths(Collection $collection): array
179183
{
180184
return [
@@ -193,6 +197,7 @@ public function getOpenApiPaths(Collection $collection): array
193197
$collection->resources(),
194198
),
195199
multiple: true,
200+
links: true,
196201
),
197202
],
198203
'400' => $this->buildBadRequestErrorResponse(),

0 commit comments

Comments
 (0)