Browse Source

add get version example

Nicola Murino 6 years ago
parent
commit
4d3c8fb6c4
2 changed files with 19 additions and 1 deletions
  1. 1 1
      README.md
  2. 18 0
      scripts/README.md

+ 1 - 1
README.md

@@ -247,7 +247,7 @@ and you can add authentication with something like this:
 <Location /api/v1>
 	AuthType Digest
 	AuthName "Private"
-  AuthDigestDomain "/api/v1"
+	AuthDigestDomain "/api/v1"
 	AuthDigestProvider file
 	AuthUserFile "/etc/httpd/conf/auth_digest"
 	Require valid-user

+ 18 - 0
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"
+}
 ```