From 4d3c8fb6c47ef56098e8bef41fd2476a3e3dede5 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Thu, 8 Aug 2019 10:13:32 +0200 Subject: [PATCH] add get version example --- README.md | 2 +- scripts/README.md | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d7f7290b..c17a9bfb 100644 --- a/README.md +++ b/README.md @@ -247,7 +247,7 @@ and you can add authentication with something like this: AuthType Digest AuthName "Private" - AuthDigestDomain "/api/v1" + AuthDigestDomain "/api/v1" AuthDigestProvider file AuthUserFile "/etc/httpd/conf/auth_digest" Require valid-user diff --git a/scripts/README.md b/scripts/README.md index d9adf4b1..82a7ee99 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -232,4 +232,22 @@ Output: "message": "User deleted", "status": 200 } +``` + +### Get version + +Command: + +``` +python sftpgo_api_cli.py get_version +``` + +Output: + +```json +{ + "version": "0.9.0-dev", + "build_date": "2019-08-08T08:11:34Z", + "commit_hash": "4f4489d-dirty" +} ``` \ No newline at end of file