Méthode | 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 = [] ) |
Méthode | 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 | ||
Résultat | Neomerx\JsonApi\Contracts\Encoder\EncoderInterface |
abstract protected getEncodingParameters ( ) : Neomerx\JsonApi\Contracts\Encoder\Parameters\EncodingParametersInterface | null | ||
Résultat | 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 | ||
Résultat | Neomerx\JsonApi\Contracts\Http\Headers\MediaTypeInterface |
public getMetaResponse ( $meta, $statusCode = self::HTTP_OK, array $headers = [] ) | ||
$headers | array |
protected getResourceLocationUrl ( mixed $resource ) : string | ||
$resource | mixed | |
Résultat | string |
abstract protected getSchemaContainer ( ) : Neomerx\JsonApi\Contracts\Schema\ContainerInterface | ||
Résultat | Neomerx\JsonApi\Contracts\Schema\ContainerInterface |
abstract protected getSupportedExtensions ( ) : Neomerx\JsonApi\Contracts\Http\Headers\SupportedExtensionsInterface | null | ||
Résultat | Neomerx\JsonApi\Contracts\Http\Headers\SupportedExtensionsInterface | null |
abstract protected getUrlPrefix ( ) : string | null | ||
Résultat | string | null |