From b0a7db3e945930935cfea6d2e25b162d7b09cccf Mon Sep 17 00:00:00 2001 From: Lars Falk-Petersen Date: Mon, 7 Oct 2024 12:09:51 +0200 Subject: [PATCH] Set correct type for service-desc. Add service-doc. --- app/routes/landing_page.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/routes/landing_page.py b/app/routes/landing_page.py index 00c9e62..8c46732 100644 --- a/app/routes/landing_page.py +++ b/app/routes/landing_page.py @@ -25,7 +25,13 @@ def create_landing_page(base_url) -> dict: Link( href=f"{base_url}api", rel="service-desc", - type="application/json", + type="application/vnd.oai.openapi+json;version=3.1", + title="OpenAPI document", + ), + Link( + href=f"{base_url}docs", + rel="service-doc", + type="text/html", title="OpenAPI document", ), Link(