Реализовать observability для лабораторной 6

This commit is contained in:
2026-11-20 17:55:23 +03:00
parent 58f3d4c457
commit 9e6428de05
50 changed files with 3573 additions and 98 deletions
+15
View File
@@ -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,