Skip to content

Commit 62b459d

Browse files
authored
Merge pull request #10 from Passimx/8-добавить-хеш-для-buffer-файла
feat: delete webdav and add hash for file
2 parents d86f5a9 + 181f3e0 commit 62b459d

File tree

7 files changed

+118
-327
lines changed

7 files changed

+118
-327
lines changed

api/swagger.json

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@
55
"post": {
66
"operationId": "FilesController_upload",
77
"parameters": [],
8+
"requestBody": {
9+
"required": true,
10+
"content": {
11+
"application/json": {
12+
"schema": {
13+
"$ref": "#/components/schemas/UploadDto"
14+
}
15+
}
16+
}
17+
},
818
"responses": {
919
"201": {
1020
"description": ""
@@ -15,12 +25,21 @@
1525
]
1626
}
1727
},
18-
"/files/{id}": {
28+
"/files/{chatId}/{fileId}": {
1929
"get": {
2030
"operationId": "FilesController_downFile",
2131
"parameters": [
2232
{
23-
"name": "id",
33+
"name": "chatId",
34+
"required": true,
35+
"in": "path",
36+
"description": "Chat ID",
37+
"schema": {
38+
"type": "string"
39+
}
40+
},
41+
{
42+
"name": "fileId",
2443
"required": true,
2544
"in": "path",
2645
"description": "File ID",
@@ -66,6 +85,18 @@
6685
}
6786
],
6887
"components": {
69-
"schemas": {}
88+
"schemas": {
89+
"UploadDto": {
90+
"type": "object",
91+
"properties": {
92+
"chatId": {
93+
"type": "string"
94+
}
95+
},
96+
"required": [
97+
"chatId"
98+
]
99+
}
100+
}
70101
}
71102
}

0 commit comments

Comments
 (0)