4 Commits
v0.3 ... v0.4

Author SHA1 Message Date
6be51c5aaa Merge pull request 'Fixed OpenAPI specs' (#13) from dev into master
Reviewed-on: #13
2023-06-22 15:44:39 +03:00
840e3022b3 Merge branch 'master' into dev 2023-06-22 15:44:35 +03:00
24f4773dd7 Updated to v0.4 2023-06-22 14:43:15 +02:00
00d3d62762 Fixed openapi spec 2023-06-22 14:43:00 +02:00
3 changed files with 23 additions and 3 deletions

View File

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

View File

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

View File

@@ -1,7 +1,7 @@
from fastapi import FastAPI
from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html
app = FastAPI(title="END PLAY Photos", docs_url=None, redoc_url=None, version="0.3")
app = FastAPI(title="END PLAY Photos", docs_url=None, redoc_url=None, version="0.4")
@app.get("/docs", include_in_schema=False)