forked from mtusi2026/mtusi2026lab5
Исходники, миграции, Dockerfile и стенд lab4 нужны как основа асинхронной обработки вложений. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
595 B
JSON
22 lines
595 B
JSON
{
|
|
"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."
|
|
}
|
|
}
|
|
}
|
|
}
|