Docs: improve metadata.

This commit is contained in:
Tom Hacohen 2020-12-29 09:46:20 +02:00
parent 7714148807
commit a8b97e60d4

View File

@ -14,7 +14,15 @@ from .msgpack import MsgpackResponse
def create_application(prefix=""): def create_application(prefix=""):
app = FastAPI() app = FastAPI(
title="Etebase",
description="The Etebase server API documentation",
externalDocs={
"url": "https://docs.etebase.com",
"description": "Docs about the API specifications and clients.",
}
# FIXME: version="2.5.0",
)
VERSION = "v1" VERSION = "v1"
BASE_PATH = f"{prefix}/api/{VERSION}" BASE_PATH = f"{prefix}/api/{VERSION}"
COLLECTION_UID_MARKER = "{collection_uid}" COLLECTION_UID_MARKER = "{collection_uid}"