forked from mtusi2026/mtusi2026lab6
22 lines
605 B
JSON
22 lines
605 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, store the original, and enqueue processing. Returns 202 queued."
|
|
}
|
|
}
|
|
}
|
|
}
|