From 6e5b6fda56972b8103b13a5d0617616e141f4b5f Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Wed, 19 Oct 2022 17:20:19 +0200 Subject: [PATCH] collect_api_endpoints.py - minor bug fixes (incorrect method) --- collect_api_endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collect_api_endpoints.py b/collect_api_endpoints.py index f05f36d0..ca72bd36 100755 --- a/collect_api_endpoints.py +++ b/collect_api_endpoints.py @@ -38,7 +38,7 @@ DEFAULT_BASE_METHODS = { }, { "command": "get", "parameters": "", - "method": "POST" + "method": "GET" }], "ApiMutableServiceControllerBase": [{ "command": "status", @@ -133,7 +133,7 @@ def parse_api_php(src_filename): if item not in this_commands: result.append({ 'type': 'Service', - 'method': 'GET', + 'method': item['method'], 'module': module_name, 'controller': controller, 'is_abstract': False,