Skip to content

Commit bb8dfd7

Browse files
committed
Annotate grouped log download for api generation
1 parent cfc4cc7 commit bb8dfd7

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

app/api/api_v1/endpoints/test_run_executions.py

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,25 @@ def download_log(
495495
)
496496

497497

498-
@router.get("/{id}/grouped-log", response_class=StreamingResponse)
498+
@router.get(
499+
"/{id}/grouped-log",
500+
response_class=StreamingResponse,
501+
responses={
502+
"200": {
503+
"description": "Successful Response",
504+
"content": {
505+
"application/zip": {"schema": {"type": "string", "format": "binary"}}
506+
},
507+
"headers": {
508+
"Content-Disposition": {
509+
"description": "Suggests a filename for the downloaded ZIP file",
510+
"schema": {"type": "string"},
511+
"example": 'attachment; filename="archive.zip"',
512+
}
513+
},
514+
}
515+
},
516+
)
499517
def download_grouped_log(
500518
*,
501519
db: Session = Depends(get_db),

0 commit comments

Comments
 (0)