Method |
Description |
|
__construct ( array $settings = [] ) |
|
|
authenticationMiddleware ( ) |
Authentication middleware |
|
checkPermissions ( $args ) |
Checks whether the authenticated user either is authorized to the specified object or has permission to ACL Role |
|
delete ( $path, $options, $requirements = [] ) |
|
|
environmentAuthenticationMiddleware ( ) |
Environment level authentication middleware |
|
error ( $e = null ) |
|
|
get ( $path, $options, $requirements = [] ) |
|
|
getAuditLoggerConfig ( ) |
|
|
getDefaultSettings ( ) |
Gets default settings |
|
getEnvironment ( ) : Environment |
Gets User's Environment |
|
getErrorEnvelope ( ) : Scalr\Api\DataType\ErrorEnvelope |
Gets API error envelope |
|
getRouteHandler ( string $name ) : callable |
Gets the callback for the handler of the specified Route |
|
getScope ( ) : string |
Gets current API request scope |
|
getUser ( ) : User |
Gets authorized user |
|
handleApiVersion ( $route ) |
|
|
handleEnvironment ( Scalr\Api\Rest\Routing\Route $route ) |
Scalr-Evironment middleware handler |
|
hasPermissions ( ) : boolean |
Checks whether the authenticated user either is authorized to the specified object or has permission to ACL Role |
|
invokeRoute ( string $name ) : mixed |
Invokes the named route with the list of the arguments and returns the result |
|
notFound ( ) |
|
|
patch ( $path, $options, $requirements = [] ) |
|
|
post ( $path, $options, $requirements = [] ) |
|
|
preflightRequestHandlerMiddleware ( ) |
Preflight request middleware handler |
|
put ( $path, $options, $requirements = [] ) |
|
|
redirectTo ( string $route, array $params = [], number $status = 302 ) |
Redirects to the specified named route |
|
setEnvironment ( Environment $environment ) : ApiApplication |
Sets User's Environment |
|
setUser ( User $user ) : ApiApplication |
Sets authorized user |
|
setupRoutes ( ) : ApiApplication |
Sets up all API routes |
|