Fixed OpenAPI specs #13
@ -267,7 +267,17 @@ if configGet("media_token_access") is True:
|
||||
|
||||
|
||||
photo_get_responses = {
|
||||
200: {"content": {"image/*": {}}},
|
||||
200: {
|
||||
"content": {
|
||||
"application/octet-stream": {
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "binary",
|
||||
"contentMediaType": "image/*",
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
404: PhotoNotFoundError("id").openapi,
|
||||
}
|
||||
|
||||
|
@ -93,7 +93,17 @@ async def video_upload(
|
||||
|
||||
|
||||
video_get_responses = {
|
||||
200: {"content": {"video/*": {}}},
|
||||
200: {
|
||||
"content": {
|
||||
"application/octet-stream": {
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"format": "binary",
|
||||
"contentMediaType": "video/*",
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
404: VideoNotFoundError("id").openapi,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user