Добавить прямую загрузку по короткой подписи.

Proxy endpoint сохранён. Complete сверяет владельца, размер и checksum, а сравнение трафика API на двух размерах лежит в evidence.
This commit is contained in:
2026-11-09 00:36:52 +03:00
parent 8faf08d8eb
commit 4654de5837
18 changed files with 812 additions and 11 deletions
+21
View File
@@ -0,0 +1,21 @@
{
"openapi": "3.1.0",
"info": {
"title": "Messenger lab4 optional direct upload",
"version": "1.4.0-track1"
},
"paths": {
"/api/v1/chats/{chat_id}/uploads": {
"post": {
"operationId": "beginDirectUpload",
"summary": "Issue a 60s PUT signature for one new object key. Does not replace POST /attachments."
}
},
"/api/v1/uploads/{upload_id}/complete": {
"post": {
"operationId": "completeDirectUpload",
"summary": "Check owner, size and sha256 of the object that arrived, then store ready metadata."
}
}
}
}