\LiftKit\Router\Route\Http\RestController

REST Controller HTTP Route

A route for attaching a REST Controller to a base URI, but it takes request methods into account.

Summary

Methods
Properties
Constants
isValid()
execute()
__construct()
No public properties found
No constants found
No protected methods found
$baseUri
N/A
No private methods found
No private properties found
N/A

Properties

$baseUri

$baseUri : string

Base URI to attach route to

Type

string

Methods

isValid()

isValid(\LiftKit\Request\Request  $request) : boolean

Returns whether the route matches the supplied request

Parameters

\LiftKit\Request\Request $request

Returns

boolean

__construct()

__construct(callable  $baseUri, \LiftKit\Controller\RestInterface  $controller) 

Constructor

Parameters

callable $baseUri

Base URI to attach route to

\LiftKit\Controller\RestInterface $controller

Controller to attach