Property | Type | Description | |
---|---|---|---|
$include | array | The relationships that are included by default. | |
$limit | integer | The number of records included by default. | |
$maxLimit | integer | The maximum number of records that can be requested. | |
$optionalInclude | array | The relationships that are available to be included. | |
$serializer | string | The name of the serializer class to output results with. | |
$sort | array | null | The default sort field and order to user. | |
$sortFields | array | The fields that are available to be sorted by. |
Property | Type | Description | |
---|---|---|---|
$container | Illuminate\Contracts\Container\Container | ||
$events | Illuminate\Contracts\Events\Dispatcher |
Method | Description | |
---|---|---|
getContainer ( ) : Illuminate\Contracts\Container\Container | ||
getEventDispatcher ( ) : Illuminate\Contracts\Events\Dispatcher | ||
handle ( Psr\Http\Message\ServerRequestInterface $request ) | ||
setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
setEventDispatcher ( Illuminate\Contracts\Events\Dispatcher $events ) |
Method | Description | |
---|---|---|
buildParameters ( Psr\Http\Message\ServerRequestInterface $request ) : |
||
createElement ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) : Tobscure\JsonApi\ElementInterface | Create a PHP JSON-API Element for output in the document. | |
data ( Psr\Http\Message\ServerRequestInterface $request, |
Get the data to be serialized and assigned to the response document. | |
extractFields ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
extractFilter ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
extractInclude ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
extractLimit ( Psr\Http\Message\ServerRequestInterface $request ) : integer | ||
extractOffset ( Psr\Http\Message\ServerRequestInterface $request ) : integer | ||
extractSort ( Psr\Http\Message\ServerRequestInterface $request ) : array | null |
protected buildParameters ( Psr\Http\Message\ServerRequestInterface $request ) : |
||
$request | Psr\Http\Message\ServerRequestInterface | |
return |
abstract protected createElement ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) : Tobscure\JsonApi\ElementInterface | ||
$data | mixed | |
$serializer | Tobscure\JsonApi\SerializerInterface | |
return | Tobscure\JsonApi\ElementInterface |
protected extractFields ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | array |
protected extractFilter ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | array |
protected extractInclude ( Psr\Http\Message\ServerRequestInterface $request ) : array | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | array |
protected extractLimit ( Psr\Http\Message\ServerRequestInterface $request ) : integer | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | integer |
protected extractOffset ( Psr\Http\Message\ServerRequestInterface $request ) : integer | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | integer |
protected extractSort ( Psr\Http\Message\ServerRequestInterface $request ) : array | null | ||
$request | Psr\Http\Message\ServerRequestInterface | |
return | array | null |
public static getContainer ( ) : Illuminate\Contracts\Container\Container | ||
return | Illuminate\Contracts\Container\Container |
public static getEventDispatcher ( ) : Illuminate\Contracts\Events\Dispatcher | ||
return | Illuminate\Contracts\Events\Dispatcher |
public handle ( Psr\Http\Message\ServerRequestInterface $request ) | ||
$request | Psr\Http\Message\ServerRequestInterface |
public static setContainer ( Illuminate\Contracts\Container\Container $container ) | ||
$container | Illuminate\Contracts\Container\Container |
public static setEventDispatcher ( Illuminate\Contracts\Events\Dispatcher $events ) | ||
$events | Illuminate\Contracts\Events\Dispatcher |
protected static Container,Illuminate\Contracts\Container $container | ||
return | Illuminate\Contracts\Container\Container |
protected static Dispatcher,Illuminate\Contracts\Events $events | ||
return | Illuminate\Contracts\Events\Dispatcher |
public array $include | ||
return | array |
public int $limit | ||
return | integer |
public int $maxLimit | ||
return | integer |
public array $optionalInclude | ||
return | array |
public string $serializer | ||
return | string |
public array $sortFields | ||
return | array |