Méthode |
Description |
|
__construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer ) |
|
|
accepted ( ) : Psr\Http\Message\ResponseInterface |
Returns a "202 Accepted" response. |
|
conflict ( AbstractErrorDocument $document, array $errors = [], array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "409 Conflict" response, containing a document in the body with the errors. You can also pass
additional meta information for the error document in the $additionalMeta argument. |
|
created ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "201 Created" response, containing a document in the body with the newly created resource. You can also
pass additional meta information for the document in the $additionalMeta argument. |
|
forbidden ( AbstractErrorDocument $document, array $errors = [], array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "403 Forbidden" response, containing a document in the body with the errors. You can also pass
additional meta information for the error document in the $additionalMeta argument. |
|
genericError ( AbstractErrorDocument $document, array $errors = [], integer | null $statusCode = null, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns an error response, containing a document in the body with the errors. You can also pass additional
meta information to the document in the $additionalMeta argument. |
|
genericSuccess ( integer $statusCode ) : Psr\Http\Message\ResponseInterface |
Returns a successful response with the given status code. |
|
noContent ( ) : Psr\Http\Message\ResponseInterface |
Returns a "204 No Content" response. |
|
notFound ( AbstractErrorDocument $document, array $errors = [], array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "404 Not Found" response, containing a document in the body with the errors. You can also pass
additional meta information for the error document in the $additionalMeta argument. |
|
ok ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "200 Ok" response, containing a document in the body with the resource. |
|
okWithMeta ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "200 Ok" response, containing a document in the body with the resource meta data. |
|