diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 78c7c67..40adcb0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,7 +1,7 @@ [bumpversion] commit = True tag = True -current_version = 0.1.43 +current_version = 0.1.45 message = Bump version: {current_version} → {new_version} [bumpversion:file:src/india_api/internal/service/server.py] diff --git a/src/india_api/internal/service/regions.py b/src/india_api/internal/service/regions.py index e9f4318..0c0a2a3 100644 --- a/src/india_api/internal/service/regions.py +++ b/src/india_api/internal/service/regions.py @@ -31,6 +31,7 @@ class GetSourcesResponse(BaseModel): @router.get( "/sources", status_code=status.HTTP_200_OK, + include_in_schema=False, ) def get_sources_route(auth: dict = Depends(auth)) -> GetSourcesResponse: """Function for the sources route.""" @@ -60,6 +61,7 @@ def validate_source(source: str) -> str: @router.get( "/{source}/regions", status_code=status.HTTP_200_OK, + include_in_schema=False, ) def get_regions_route( source: ValidSourceDependency, @@ -85,6 +87,7 @@ class GetHistoricGenerationResponse(BaseModel): @router.get( "/{source}/{region}/generation", status_code=status.HTTP_200_OK, + include_in_schema=False, ) def get_historic_timeseries_route( source: ValidSourceDependency, @@ -126,6 +129,7 @@ class GetForecastGenerationResponse(BaseModel): @router.get( "/{source}/{region}/forecast", status_code=status.HTTP_200_OK, + include_in_schema=False, ) def get_forecast_timeseries_route( source: ValidSourceDependency, @@ -180,6 +184,7 @@ def get_forecast_timeseries_route( @router.get( "/{source}/{region}/forecast/csv", response_class=FileResponse, + include_in_schema=False, ) def get_forecast_da_csv( source: ValidSourceDependency, diff --git a/src/india_api/internal/service/server.py b/src/india_api/internal/service/server.py index 1455ce8..15625de 100644 --- a/src/india_api/internal/service/server.py +++ b/src/india_api/internal/service/server.py @@ -14,7 +14,7 @@ logging.basicConfig(level=logging.DEBUG, stream=sys.stdout) log = logging.getLogger(__name__) -version = "0.1.43" +version = "0.1.45" tags_metadata = [ @@ -28,12 +28,13 @@ "Each site will have one source of energy " "and there is forecast and generation data for each site. ", }, - { - "name": "Regions", - "description": "A region is an area of land e.g. Alaska in the USA. " - "There is forecast and generation data for each region " - "and there may be different sources of energy in one region.", - }, + # I want to keep this here, as we might add this back in the future + # { + # "name": "Regions", + # "description": "A region is an area of land e.g. Alaska in the USA. " + # "There is forecast and generation data for each region " + # "and there may be different sources of energy in one region.", + # }, ] title = "India API"