메소드 |
설명 |
|
__construct ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, Psr\Http\Message\ResponseInterface $response, WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface $exceptionFactory, WoohooLabs\Yin\JsonApi\Serializer\SerializerInterface $serializer, string $relationshipName ) |
|
|
ok ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "200 Ok" response, containing a document in the body with the relationship. You can also
pass additional meta information for the document in the $additionalMeta argument. |
|
okWithMeta ( AbstractSuccessfulDocument $document, mixed $domainObject, array $additionalMeta = [] ) : Psr\Http\Message\ResponseInterface |
Returns a "200 Ok" response, containing a document with the relationship meta data in the body. You can also
pass additional meta information for the document in the $additionalMeta argument. |
|