Class JsonApiComponent
Handles JSON API data format in input and in output
- Cake\Controller\Component
-
BEdita\API\Controller\Component\JsonApiComponent
Namespace: BEdita\API\Controller\Component
Since: 4.0.0
Located at API/src/Controller/Component/JsonApiComponent.php
Since: 4.0.0
Located at API/src/Controller/Component/JsonApiComponent.php
Methods summary
public
|
|
public
array
|
|
public
|
|
public
array
|
|
public
array
|
|
protected
|
#
allowedResourceTypes( mixed $types, array $data = null )
Check if given resource types are allowed. |
protected
|
#
allowClientGeneratedIds( boolean $allow = true, array $data = null )
Check that no resource includes a client-generated ID, if this feature is unsupported. |
public
|
|
public
|
Constants summary
string |
CONTENT_TYPE
JSON API content type. |
#
'application/vnd.api+json'
|
Properties summary
public
array
|
$components
|
#
['RequestHandler']
|
protected
array
|
$_defaultConfig
|
#
[
'contentType' => null,
'checkMediaType' => true,
'resourceTypes' => null,
'clientGeneratedIds' => false,
]
|
Magic properties
public
Cake\Controller\Component\RequestHandlerComponent
|
$RequestHandler
|