Fixed OpenAPI specs #13

Merged
profitroll merged 3 commits from dev into master 2023-06-22 15:44:40 +03:00
2 changed files with 22 additions and 2 deletions
Showing only changes of commit 00d3d62762 - Show all commits

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,
} }