/**
  * @param string $controller
  * @param string $action
  * @return string
  */
 protected function getBaseRouteForDTO($controller, $action)
 {
     $classMeta = $this->reflectionService->getClassMetaReflection($controller);
     $nameSpaceParts = explode('\\', $classMeta->getNamespace());
     // /vendor/package/controller/action
     return '/' . $nameSpaceParts[0] . '/' . $nameSpaceParts[1] . '/' . $classMeta->getShortName() . '/' . str_replace('Action', '', $action);
 }
 /**
  * @param string $resource
  * @param string $action
  * @return string
  */
 protected function getBaseRouteForDTO($resource, $action)
 {
     $classMeta = $this->reflectionService->getClassMetaReflection($resource);
     return '/' . $classMeta->getAnnotation(Resource::class)->getPath() . '/' . $action;
 }