You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/webserver/web/static/apidocumentation/openapi.json
+59Lines changed: 59 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -108,6 +108,65 @@
108
108
}
109
109
}
110
110
},
111
+
"/files/download/{id}": {
112
+
"get": {
113
+
"tags": [
114
+
"files"
115
+
],
116
+
"summary": "Downloads file with optionally increasing the download counter",
117
+
"description": "This API call downloads a file that is not expired and increasing its download counter is disabled by default. Returns 404 if an invalid/expired ID was passed. Requires API permission DOWNLOAD. To download files that were not uploaded by the user, the user needs to have the user permission LIST",
118
+
"operationId": "downloadsingle",
119
+
"parameters": [
120
+
{
121
+
"name": "id",
122
+
"in": "path",
123
+
"required": true,
124
+
"schema": {
125
+
"type": "string"
126
+
},
127
+
"description": "ID of file to be downloaded"
128
+
},
129
+
{
130
+
"name": "increaseCounter",
131
+
"in": "header",
132
+
"required": false,
133
+
"schema": {
134
+
"type": "boolean"
135
+
},
136
+
"description": "Increase counter if set to true"
137
+
}
138
+
],
139
+
"security": [
140
+
{
141
+
"apikey": [
142
+
"DOWNLOAD"
143
+
]
144
+
}
145
+
],
146
+
"responses": {
147
+
"200": {
148
+
"description": "Operation successful",
149
+
"content": {
150
+
"application/octet-stream": {
151
+
"schema": {
152
+
"type": "file",
153
+
"format": "binary"
154
+
}
155
+
}
156
+
}
157
+
},
158
+
"400": {
159
+
"description": "Invalid input"
160
+
},
161
+
"401": {
162
+
"description": "Invalid API key provided for authentication or API key does not have the required permission"
163
+
},
164
+
"404": {
165
+
"description": "Invalid ID provided or file has expired"
0 commit comments