From a8b97e60d407659f363d3486cbde1f8ad5d7bdd7 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Tue, 29 Dec 2020 09:46:20 +0200 Subject: [PATCH] Docs: improve metadata. --- etebase_fastapi/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/etebase_fastapi/main.py b/etebase_fastapi/main.py index a55e2fa..69303bf 100644 --- a/etebase_fastapi/main.py +++ b/etebase_fastapi/main.py @@ -14,7 +14,15 @@ from .msgpack import MsgpackResponse 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" BASE_PATH = f"{prefix}/api/{VERSION}" COLLECTION_UID_MARKER = "{collection_uid}"