Skip to content

Commit

Permalink
Add a slew of metadata to expose in Swagger (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
larsnaesbye authored Jul 20, 2022
1 parent 249d6fa commit ae8cce0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion webproj/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]",
license="MIT License",
)

_DATA = Path(__file__).parent / Path("data.json")

Expand Down

0 comments on commit ae8cce0

Please sign in to comment.