|
@@ -2,7 +2,7 @@ openapi: 3.0.3
|
|
info:
|
|
info:
|
|
title: SFTPGo
|
|
title: SFTPGo
|
|
description: SFTPGo REST API
|
|
description: SFTPGo REST API
|
|
- version: 2.4.0
|
|
|
|
|
|
+ version: 2.4.1
|
|
|
|
|
|
servers:
|
|
servers:
|
|
- url: /api/v2
|
|
- url: /api/v2
|
|
@@ -327,7 +327,7 @@ paths:
|
|
example: reset
|
|
example: reset
|
|
requestBody:
|
|
requestBody:
|
|
required: true
|
|
required: true
|
|
- description: The only user mandatory fields are username,used_quota_size and used_quota_files. Please note that if the quota fields are missing they will default to 0
|
|
|
|
|
|
+ description: The only user mandatory fields are username, used_quota_size and used_quota_files. Please note that if the quota fields are missing they will default to 0
|
|
content:
|
|
content:
|
|
application/json:
|
|
application/json:
|
|
schema:
|
|
schema:
|
|
@@ -723,7 +723,7 @@ paths:
|
|
schema:
|
|
schema:
|
|
$ref : '#/components/schemas/ApiResponse'
|
|
$ref : '#/components/schemas/ApiResponse'
|
|
example:
|
|
example:
|
|
- message: "User updated"
|
|
|
|
|
|
+ message: "Admin updated"
|
|
400:
|
|
400:
|
|
$ref: '#/components/responses/BadRequest'
|
|
$ref: '#/components/responses/BadRequest'
|
|
401:
|
|
401:
|
|
@@ -756,7 +756,7 @@ paths:
|
|
schema:
|
|
schema:
|
|
$ref : '#/components/schemas/ApiResponse'
|
|
$ref : '#/components/schemas/ApiResponse'
|
|
example:
|
|
example:
|
|
- message: "User deleted"
|
|
|
|
|
|
+ message: "Admin deleted"
|
|
400:
|
|
400:
|
|
$ref: '#/components/responses/BadRequest'
|
|
$ref: '#/components/responses/BadRequest'
|
|
401:
|
|
401:
|
|
@@ -1688,7 +1688,7 @@ components:
|
|
description: connection time as unix timestamp in milliseconds
|
|
description: connection time as unix timestamp in milliseconds
|
|
command:
|
|
command:
|
|
type: string
|
|
type: string
|
|
- description: SSH/FTP command or WebDAV method
|
|
|
|
|
|
+ description: Last SSH/FTP command or WebDAV method
|
|
last_activity:
|
|
last_activity:
|
|
type: integer
|
|
type: integer
|
|
format: int64
|
|
format: int64
|
|
@@ -1795,13 +1795,16 @@ components:
|
|
type: array
|
|
type: array
|
|
items:
|
|
items:
|
|
$ref: '#/components/schemas/SSHBinding'
|
|
$ref: '#/components/schemas/SSHBinding'
|
|
|
|
+ nullable: true
|
|
host_keys:
|
|
host_keys:
|
|
type: array
|
|
type: array
|
|
items:
|
|
items:
|
|
$ref: '#/components/schemas/SSHHostKey'
|
|
$ref: '#/components/schemas/SSHHostKey'
|
|
|
|
+ nullable: true
|
|
ssh_commands:
|
|
ssh_commands:
|
|
- type: string
|
|
|
|
- description: accepted SSH commands comma separated
|
|
|
|
|
|
+ type: array
|
|
|
|
+ items:
|
|
|
|
+ type: string
|
|
FTPPassivePortRange:
|
|
FTPPassivePortRange:
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|
|
@@ -1818,6 +1821,7 @@ components:
|
|
type: array
|
|
type: array
|
|
items:
|
|
items:
|
|
$ref: '#/components/schemas/FTPDBinding'
|
|
$ref: '#/components/schemas/FTPDBinding'
|
|
|
|
+ nullable: true
|
|
passive_port_range:
|
|
passive_port_range:
|
|
$ref: '#/components/schemas/FTPPassivePortRange'
|
|
$ref: '#/components/schemas/FTPPassivePortRange'
|
|
WebDAVServiceStatus:
|
|
WebDAVServiceStatus:
|
|
@@ -1829,6 +1833,7 @@ components:
|
|
type: array
|
|
type: array
|
|
items:
|
|
items:
|
|
$ref: '#/components/schemas/WebDAVBinding'
|
|
$ref: '#/components/schemas/WebDAVBinding'
|
|
|
|
+ nullable: true
|
|
DataProviderStatus:
|
|
DataProviderStatus:
|
|
type: object
|
|
type: object
|
|
properties:
|
|
properties:
|