add get version example

This commit is contained in:
Nicola Murino 2019-08-08 10:13:32 +02:00
parent 4f4489d3f1
commit 4d3c8fb6c4
2 changed files with 19 additions and 1 deletions

View file

@ -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

View file

@ -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"
}
```