From ae8cce08996bb14fc5af4456b6c81b31a1655b2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20N=C3=A6sbye=20Christensen?= Date: Wed, 20 Jul 2022 13:05:57 +0200 Subject: [PATCH] Add a slew of metadata to expose in Swagger (#46) --- webproj/api.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/webproj/api.py b/webproj/api.py index 2f24301..061cd91 100644 --- a/webproj/api.py +++ b/webproj/api.py @@ -21,7 +21,19 @@ app.url_map.converters["number"] = IntFloatConverter CORS(app) -api = Api(app, version=version, title="WEBPROJ") +api = Api( + app, + version=version, + title="WEBPROJ", + description="## API til koordinattransformationer\n\nAPIet " + "__WEBPROJ__ giver adgang til at transformere " + "multidimensionelle koordinatsæt. \n\nTil adgang " + "benyttes Dataforsyningens brugeradgang som ved andre " + "tjenester.\n\n[Versionshistorik](/webproj.txt)", + terms_url="https://dataforsyningen.dk/Vilkaar", + contact="support@sdfi.dk", + license="MIT License", +) _DATA = Path(__file__).parent / Path("data.json")