mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
add get version example
This commit is contained in:
@@ -247,7 +247,7 @@ and you can add authentication with something like this:
|
|||||||
<Location /api/v1>
|
<Location /api/v1>
|
||||||
AuthType Digest
|
AuthType Digest
|
||||||
AuthName "Private"
|
AuthName "Private"
|
||||||
AuthDigestDomain "/api/v1"
|
AuthDigestDomain "/api/v1"
|
||||||
AuthDigestProvider file
|
AuthDigestProvider file
|
||||||
AuthUserFile "/etc/httpd/conf/auth_digest"
|
AuthUserFile "/etc/httpd/conf/auth_digest"
|
||||||
Require valid-user
|
Require valid-user
|
||||||
|
|||||||
@@ -232,4 +232,22 @@ Output:
|
|||||||
"message": "User deleted",
|
"message": "User deleted",
|
||||||
"status": 200
|
"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"
|
||||||
|
}
|
||||||
```
|
```
|
||||||
Reference in New Issue
Block a user