forked from mtusi2026/mtusi2026lab6
Реализовать observability для лабораторной 6
This commit is contained in:
@@ -16,6 +16,21 @@ router = APIRouter(tags=['attachments'])
|
||||
'/api/v1/chats/{chat_id}/attachments',
|
||||
status_code=202,
|
||||
response_model=AttachmentOut,
|
||||
summary='Принять PNG/JPEG на асинхронную обработку',
|
||||
openapi_extra={
|
||||
'requestBody': {
|
||||
'required': True,
|
||||
'description': 'Сырые байты изображения, не multipart/form-data.',
|
||||
'content': {
|
||||
'image/png': {
|
||||
'schema': {'type': 'string', 'format': 'binary'},
|
||||
},
|
||||
'image/jpeg': {
|
||||
'schema': {'type': 'string', 'format': 'binary'},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
async def upload(
|
||||
chat_id: UUID,
|
||||
|
||||
Reference in New Issue
Block a user