Describe filename param in capture download

This commit is contained in:
Richard 2021-07-19 21:40:28 +01:00
parent 36be07b276
commit ec992c083f

View file

@ -198,7 +198,17 @@ class CaptureDownload(View):
responses = {
200: {"content": {"image/jpeg": {}}, "description": "Image data in JPEG format"}
}
parameters = [CAPTURE_ID_PARAMETER]
parameters = [
CAPTURE_ID_PARAMETER,
{
"name": "filename",
"in": "path",
"description": "The filename of the downloaded image.",
"required": False,
"schema": {"type": "string"},
"example": "myimage.jpeg",
}
]
def get(self, id_, filename: Optional[str]):
"""