Ntb\RestAPI\NestedResourceRestController::beforeCallActionHandler
Get called by the action handler of BaseRestController. Tries to fetch the root resource.
Signature
public function beforeCallActionHandler(SS_HTTPRequest
$request,
string
$action )
Parameters
$request
—
\SS_HTTPRequest
- a http request
$action
—
string
- the name of the action (eg. post, put, get, delete)
Returns
- array
- the result of the action call
Errors/Exceptions
-
RestSystemException
-
RestUserException