forked from mtusi2026/mtusi2026lab5
feat: ЛР5 - асинхронная обработка вложений, RabbitMQ и transactional outbox
This commit is contained in:
@@ -21,7 +21,7 @@ def validate_uuid(value: str, field_name: str = "id") -> str:
|
||||
@router.post(
|
||||
"/api/v1/chats/{chat_id}/attachments",
|
||||
response_model=AttachmentResponse,
|
||||
status_code=status.HTTP_201_CREATED,
|
||||
status_code=status.HTTP_202_ACCEPTED,
|
||||
)
|
||||
async def upload_attachment(
|
||||
chat_id: str,
|
||||
@@ -66,7 +66,7 @@ async def get_attachment_metadata(
|
||||
)
|
||||
async def download_attachment_content(
|
||||
attachment_id: str,
|
||||
variant: str | None = Query(default=None),
|
||||
variant: str = Query(default="original"),
|
||||
current_user: UserResponse = Depends(get_current_user),
|
||||
) -> Response:
|
||||
"""Скачивание бинарного содержимого вложения."""
|
||||
|
||||
Reference in New Issue
Block a user