Fixed openapi spec

This commit is contained in:
Profitroll 2023-06-22 14:43:00 +02:00
parent 9bdc788078
commit 00d3d62762
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2
2 changed files with 22 additions and 2 deletions

View File

@ -267,7 +267,17 @@ if configGet("media_token_access") is True:
photo_get_responses = { photo_get_responses = {
200: {"content": {"image/*": {}}}, 200: {
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary",
"contentMediaType": "image/*",
}
}
}
},
404: PhotoNotFoundError("id").openapi, 404: PhotoNotFoundError("id").openapi,
} }

View File

@ -93,7 +93,17 @@ async def video_upload(
video_get_responses = { video_get_responses = {
200: {"content": {"video/*": {}}}, 200: {
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary",
"contentMediaType": "video/*",
}
}
}
},
404: VideoNotFoundError("id").openapi, 404: VideoNotFoundError("id").openapi,
} }