add server version command

This commit is contained in:
MaysWind
2026-02-02 23:11:20 +08:00
parent 983c65e4f8
commit a5fdb9d6b7
2 changed files with 40 additions and 6 deletions
+20 -3
View File
@@ -470,6 +470,23 @@ API_CONFIGS='[
" ]",
"}"
]
},
{
"Name": "server-version",
"Description": "Get ezBookkeeping server version information",
"Method": "GET",
"Path": "systems/version.json",
"RequiresTimezone": false,
"RequiredParams": [],
"OptionalParams": [],
"ParamTypes": {},
"ParamDescriptions": {},
"ResponseStructure": [
"{",
" \"version\": \"string (Server version)\",",
" \"commitHash\": \"string (Git commit hash)\"",
"}"
]
}
]'
@@ -593,10 +610,10 @@ Examples:
ebktools.sh list
# Show help for a specific command
ebktools.sh help transactions-add
ebktools.sh help server-version
# Call accounts-list API
ebktools.sh accounts-list
# Call server-version API
ebktools.sh server-version
# Call API with timezone name
ebktools.sh --tz-name ${example_timezone_name} transactions-list --count 10