From 3744f95e63642b02111e917a698e1e710ad3be30 Mon Sep 17 00:00:00 2001 From: Edd Lewis - BGS Date: Thu, 21 Mar 2024 14:21:01 +0000 Subject: [PATCH] Update version in openapi doc --- app/main.py | 2 +- app/routes.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/main.py b/app/main.py index 57eec28..96374dc 100644 --- a/app/main.py +++ b/app/main.py @@ -83,7 +83,7 @@ def custom_openapi(): return app.openapi_schema openapi_schema = get_openapi( title="pyagsapi - AGS File Utilities Tools and API", - version="4.5.3", + version="5.0", description=("The API performs schema validation, data validation and conversion of your AGS files. " "It also exports a graphical log from AGS data held by NGDC. " "Schema validation and conversion uses https://gitlab.com/ags-data-format-wg/ags-python-library"), diff --git a/app/routes.py b/app/routes.py index 7ab96ea..38d1306 100644 --- a/app/routes.py +++ b/app/routes.py @@ -320,7 +320,6 @@ async def convert(background_tasks: BackgroundTasks, summary="Generate Graphical Log", description=("Generate a graphical log (.pdf) from AGS data " "held by the National Geoscience Data Centre."), - include_in_schema=False, response_class=Response, responses=pdf_responses) def get_ags_log(bgs_loca_id: str = ags_log_query, @@ -369,7 +368,6 @@ def get_ags_log(bgs_loca_id: str = ags_log_query, summary="Export one or more boreholes in .ags format", description=("Export one or more borehole in .ags format from AGS data " "held by the National Geoscience Data Centre."), - include_in_schema=False, response_class=Response, responses=ags_export_responses) def ags_export(bgs_loca_id: str = ags_export_query): @@ -418,7 +416,6 @@ def ags_export(bgs_loca_id: str = ags_export_query): description=("Export a number of boreholes in .ags format from AGS data " "held by the National Geoscience Data Centre, using a" " polygon using Well-Known-Text."), - include_in_schema=False, response_model=BoreholeCountResponse, responses=ags_export_responses) def ags_export_by_polygon(polygon: str = polygon_query,