Method | Description | |
---|---|---|
getCodeResponse ( $statusCode, array $headers = [] ) | ||
getContentResponse ( $data, $statusCode = self::HTTP_OK, $links = null, $meta = null, array $headers = [] ) | ||
getCreatedResponse ( $resource, $links = null, $meta = null, array $headers = [] ) | ||
getErrorResponse ( $errors, $statusCode = self::HTTP_BAD_REQUEST, array $headers = [] ) | ||
getIdentifiersResponse ( $data, $statusCode = self::HTTP_OK, $links = null, $meta = null, array $headers = [] ) | ||
getMetaResponse ( $meta, $statusCode = self::HTTP_OK, array $headers = [] ) |
Method | Description | |
---|---|---|
createJsonApiResponse ( string | null $content, integer $statusCode, array $headers = [] ) : mixed | ||
createResponse ( string | null $content, integer $statusCode, array $headers ) : mixed | Create HTTP response. | |
getEncoder ( ) : Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | ||
getEncodingParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface | null | ||
getMediaType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | ||
getResourceLocationUrl ( mixed $resource ) : string | ||
getSchemaContainer ( ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | ||
getSupportedExtensions ( ) : Neomerx\JsonApi\Contracts\Http\Headers\SupportedExtensionsInterface | null | ||
getUrlPrefix ( ) : string | null |
public getCodeResponse ( $statusCode, array $headers = [] ) | ||
$headers | array |
public getContentResponse ( $data, $statusCode = self::HTTP_OK, $links = null, $meta = null, array $headers = [] ) | ||
$headers | array |
public getCreatedResponse ( $resource, $links = null, $meta = null, array $headers = [] ) | ||
$headers | array |
abstract protected getEncoder ( ) : Neomerx\JsonApi\Contracts\Encoder\EncoderInterface | ||
return | Neomerx\JsonApi\Contracts\Encoder\EncoderInterface |
abstract protected getEncodingParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface | null | ||
return | Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface | null |
public getErrorResponse ( $errors, $statusCode = self::HTTP_BAD_REQUEST, array $headers = [] ) | ||
$headers | array |
public getIdentifiersResponse ( $data, $statusCode = self::HTTP_OK, $links = null, $meta = null, array $headers = [] ) | ||
$headers | array |
abstract protected getMediaType ( ) : Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface | ||
return | Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface |
public getMetaResponse ( $meta, $statusCode = self::HTTP_OK, array $headers = [] ) | ||
$headers | array |
protected getResourceLocationUrl ( mixed $resource ) : string | ||
$resource | mixed | |
return | string |
abstract protected getSchemaContainer ( ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | ||
return | Neomerx\JsonApi\Contracts\Schema\ContainerInterface |
abstract protected getSupportedExtensions ( ) : Neomerx\JsonApi\Contracts\Http\Headers\SupportedExtensionsInterface | null | ||
return | Neomerx\JsonApi\Contracts\Http\Headers\SupportedExtensionsInterface | null |
abstract protected getUrlPrefix ( ) : string | null | ||
return | string | null |