Describe filename param in capture download
This commit is contained in:
parent
36be07b276
commit
ec992c083f
1 changed files with 11 additions and 1 deletions
|
|
@ -198,7 +198,17 @@ class CaptureDownload(View):
|
||||||
responses = {
|
responses = {
|
||||||
200: {"content": {"image/jpeg": {}}, "description": "Image data in JPEG format"}
|
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]):
|
def get(self, id_, filename: Optional[str]):
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue