mirror of
https://github.com/drakkan/sftpgo.git
synced 2024-11-25 00:50:31 +00:00
add get version example
This commit is contained in:
parent
4f4489d3f1
commit
4d3c8fb6c4
2 changed files with 19 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
```
|
Loading…
Reference in a new issue