collect_api_endpoints.py - minor bug fixes (incorrect method)

pull/434/head
Ad Schellevis 2 years ago
parent 06c1202fe2
commit 6e5b6fda56

@ -38,7 +38,7 @@ DEFAULT_BASE_METHODS = {
}, { }, {
"command": "get", "command": "get",
"parameters": "", "parameters": "",
"method": "POST" "method": "GET"
}], }],
"ApiMutableServiceControllerBase": [{ "ApiMutableServiceControllerBase": [{
"command": "status", "command": "status",
@ -133,7 +133,7 @@ def parse_api_php(src_filename):
if item not in this_commands: if item not in this_commands:
result.append({ result.append({
'type': 'Service', 'type': 'Service',
'method': 'GET', 'method': item['method'],
'module': module_name, 'module': module_name,
'controller': controller, 'controller': controller,
'is_abstract': False, 'is_abstract': False,

Loading…
Cancel
Save