There was an error while loading. Please reload this page.
1 parent cfc4cc7 commit bb8dfd7Copy full SHA for bb8dfd7
1 file changed
app/api/api_v1/endpoints/test_run_executions.py
@@ -495,7 +495,25 @@ def download_log(
495
)
496
497
498
-@router.get("/{id}/grouped-log", response_class=StreamingResponse)
+@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
+)
517
def download_grouped_log(
518
*,
519
db: Session = Depends(get_db),
0 commit comments