src/commands/CrudController.php
public function generateApiContent($fileNamespace, $className, $modelClass)
    {
        $alias = Inflector::humanize(Inflector::camel2words($className));
        return $this->view->render('@admin/commands/views/crud/create_api.php', [
            'namespace' => $fileNamespace,
            'className' => $className,
            'modelClass' =>  $modelClass,
            'luyaVersion' => $this->getGeneratorText('crud/create'),
            'alias' => $alias,
        ]);
    }
public function generateApiContent($fileNamespace, $className, $modelClass)
    {
        $alias = Inflector::humanize(Inflector::camel2words($className));
        return $this->view->render('@admin/commands/views/crud/create_api.php', [
            'namespace' => $fileNamespace,
            'className' => $className,
            'modelClass' =>  $modelClass,
            'luyaVersion' => $this->getGeneratorText('crud/create'),
            'alias' => $alias,
        ]);
    }
public function generateApiContent ( $ fileNamespace , $ className , $ modelClass ) { $ alias = Inflector :: humanize ( Inflector :: camel2words ( $ className ) ) ; return $ this -> view -> render ( '@admin/commands/views/crud/create_api.php' , [ 'namespace' => $ fileNamespace , 'className' => $ className , 'modelClass' => $ modelClass , 'luyaVersion' => $ this -> getGeneratorText ( 'crud/create' ) , 'alias' => $ alias , ] ) ; }
Generate the api file content based on its view file.

@param string $fileNamespace
@param string $className
@param string $modelClass
@return string
Generate the api file content based on its view file .