diff --git a/cli.php b/cli.php index b74beea..436fb3c 100755 --- a/cli.php +++ b/cli.php @@ -900,8 +900,9 @@ function onAPI(array $argv): void { return \$this->success; } - public static function getDefaultACL(Insert \$insert): void { - \$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false); + public static function getDescription(): string { + // TODO: auto generated endpoint description + return \"Short description, what users are able to do with this endpoint.\"; } }"; }, $methodNames)); @@ -911,7 +912,6 @@ namespace Site\API { use Core\API\Request; use Core\Objects\Context; - use Core\Driver\SQL\Query\Insert; abstract class {$apiName}API extends Request { public function __construct(Context \$context, bool \$externalCall = false, array \$params = []) { @@ -936,7 +936,6 @@ namespace Site\API; use Core\API\Request; use Core\Objects\Context; -use Core\Driver\SQL\Query\Insert; class $apiName extends Request { @@ -949,9 +948,10 @@ class $apiName extends Request { // TODO: auto-generated method stub return \$this->success; } - - public static function getDefaultACL(Insert \$insert): void { - \$insert->addRow(self::getEndpoint(), [], \"Short description, what users are allowed to do with this permission\", false); + + public static function getDescription(): string { + // TODO: auto generated endpoint description + return \"Short description, what users are able to do with this endpoint.\"; } } ";