Property | Type | Description | |
---|---|---|---|
$requestHandlerCollection |
Method | Description | |
---|---|---|
__construct ( |
ApiController constructor. | |
createResourceAction ( |
||
deleteResourceAction ( |
||
getResourceAction ( |
||
indexAction ( ) : |
||
listResourceAction ( |
||
updateResourceAction ( |
Method | Description | |
---|---|---|
getRequestHandler ( string $resourceType ) : WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface | ||
jsonErrorResponse ( Exception $e ) : Symfony\Component\HttpFoundation\JsonResponse |
public __construct ( |
||
$requestHandlerCollection |
public createResourceAction ( |
||
$request | ||
$resourceType | string | |
return |
public deleteResourceAction ( |
||
$request | ||
$resourceType | string | |
$identifier | integer | |
return |
protected getRequestHandler ( string $resourceType ) : WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface | ||
$resourceType | string | |
return | WellCommerce\Bundle\ApiBundle\Request\RequestHandlerInterface |
public getResourceAction ( |
||
$request | ||
$resourceType | string | |
$identifier | integer | |
return |
public indexAction ( ) : |
||
return |
protected jsonErrorResponse ( Exception $e ) : Symfony\Component\HttpFoundation\JsonResponse | ||
$e | Exception | |
return | Symfony\Component\HttpFoundation\JsonResponse |
public listResourceAction ( |
||
$request | ||
$resourceType | string | |
return |
public updateResourceAction ( |
||
$request | ||
$resourceType | string | |
$identifier | integer | |
return |