From d8ff910c2f102491bf9dae5fcc0a06ea8ae6dd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Charva=CC=81t?= Date: Fri, 18 Apr 2025 12:28:23 +0200 Subject: [PATCH] #1269 - parse doc block to identify whether method should be used in API --- www/go/core/data/Model.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/go/core/data/Model.php b/www/go/core/data/Model.php index 9b5c42cfdb..4a51882339 100644 --- a/www/go/core/data/Model.php +++ b/www/go/core/data/Model.php @@ -73,7 +73,11 @@ public static function getApiProperties(): array if ($method->isStatic()) { continue; } - + + if (strpos($method->getDocComment(), '@noapi') > 0) { + continue; + } + if (substr($method->getName(), 0, 3) == 'get') { $params = $method->getParameters();