Compare commits
3 Commits
24f4773dd7
...
v0.3
Author | SHA1 | Date | |
---|---|---|---|
2a29b85ad2 | |||
5a5103ea9c | |||
b51026b200 |
@@ -267,17 +267,7 @@ if configGet("media_token_access") is True:
|
|||||||
|
|
||||||
|
|
||||||
photo_get_responses = {
|
photo_get_responses = {
|
||||||
200: {
|
200: {"content": {"image/*": {}}},
|
||||||
"content": {
|
|
||||||
"application/octet-stream": {
|
|
||||||
"schema": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "binary",
|
|
||||||
"contentMediaType": "image/*",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
404: PhotoNotFoundError("id").openapi,
|
404: PhotoNotFoundError("id").openapi,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -93,17 +93,7 @@ async def video_upload(
|
|||||||
|
|
||||||
|
|
||||||
video_get_responses = {
|
video_get_responses = {
|
||||||
200: {
|
200: {"content": {"video/*": {}}},
|
||||||
"content": {
|
|
||||||
"application/octet-stream": {
|
|
||||||
"schema": {
|
|
||||||
"type": "string",
|
|
||||||
"format": "binary",
|
|
||||||
"contentMediaType": "video/*",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
404: VideoNotFoundError("id").openapi,
|
404: VideoNotFoundError("id").openapi,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
from fastapi.openapi.docs import get_redoc_html, get_swagger_ui_html
|
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.4")
|
app = FastAPI(title="END PLAY Photos", docs_url=None, redoc_url=None, version="0.3")
|
||||||
|
|
||||||
|
|
||||||
@app.get("/docs", include_in_schema=False)
|
@app.get("/docs", include_in_schema=False)
|
||||||
|
Reference in New Issue
Block a user