/**
  * @return string
  */
 public function getResourceSingleElementUrl()
 {
     $parent = $this->parentResource ? $this->parentResource->getResourceSingleElementUrl() : '';
     return $parent . $this->getResourceCollectionUrl() . '/{' . $this->getRoutePlaceholder() . '}';
 }
 /**
  * @param Action $action
  * @param ApiResource $parentResource
  * @return mixed
  */
 private function getUrl(Action $action, ApiResource $parentResource = null)
 {
     $parent = $parentResource ? $parentResource->getResourceSingleElementUrl() : '';
     return $parent . $action->getUrlSchema();
 }