collect_api_endpoints.py - skip empty endpoints (unknown contents)

This commit is contained in:
Ad Schellevis 2025-05-06 12:41:50 +02:00
parent 935ba27550
commit 37119d5626
2 changed files with 2 additions and 5 deletions

View file

@ -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,

View file

@ -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