/**
* Get the actions URI.
*
* @return string
*/
public function getUri()
{
$uri = '/';
if (($annotation = $this->getAnnotationByType('Method\\Method')) && isset($annotation->uri)) {
$uri = trim($annotation->uri, '/');
} else {
return;
}
if (!starts_with($uri, '{?')) {
$uri = '/' . $uri;
}
return '/' . trim(trim($this->resource->getUri(), '/') . rtrim($uri, '/'), '/');
}