We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a56d7 commit ff88b05Copy full SHA for ff88b05
src/Endpoint/Index.php
@@ -4,6 +4,7 @@
4
5
use Closure;
6
use Psr\Http\Message\ResponseInterface as Response;
7
+use ReflectionException;
8
use RuntimeException;
9
use Tobyz\JsonApiServer\Context;
10
use Tobyz\JsonApiServer\Endpoint\Concerns\BuildsOpenApiPaths;
@@ -175,6 +176,9 @@ private function applyFilters($query, Context $context): void
175
176
}
177
178
179
+ /**
180
+ * @throws ReflectionException
181
+ */
182
public function getOpenApiPaths(Collection $collection): array
183
{
184
return [
@@ -193,6 +197,7 @@ public function getOpenApiPaths(Collection $collection): array
193
197
$collection->resources(),
194
198
),
195
199
multiple: true,
200
+ links: true,
196
201
202
],
203
'400' => $this->buildBadRequestErrorResponse(),
0 commit comments