From 37119d562647f7343ece4ebcc8f7e1832ba296a7 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 6 May 2025 12:41:50 +0200 Subject: [PATCH] collect_api_endpoints.py - skip empty endpoints (unknown contents) --- collect_api_endpoints.py | 2 ++ source/development/api/core/diagnostics.rst | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/collect_api_endpoints.py b/collect_api_endpoints.py index 0883288f..41d0fa1e 100755 --- a/collect_api_endpoints.py +++ b/collect_api_endpoints.py @@ -58,6 +58,8 @@ if __name__ == '__main__': 'controllers': [] } for controller in all_modules[module_name]: + if len(controller.actions) == 0: + continue payload = { 'type': controller.type, 'module': controller.module, diff --git a/source/development/api/core/diagnostics.rst b/source/development/api/core/diagnostics.rst index 5f7a5477..80abd355 100644 --- a/source/development/api/core/diagnostics.rst +++ b/source/development/api/core/diagnostics.rst @@ -70,11 +70,6 @@ Diagnostics "``GET``","diagnostics","interface","search_arp","" "``GET``","diagnostics","interface","search_ndp","" -.. csv-table:: Resources (LogController.php) - :header: "Method", "Module", "Controller", "Command", "Parameters" - :widths: 4, 15, 15, 30, 40 - - .. csv-table:: Resources (LvtemplateController.php) :header: "Method", "Module", "Controller", "Command", "Parameters" :widths: 4, 15, 15, 30, 40