Skip to content

Commit dc62cb3

Browse files
committed
Merge commit 'b86f9b8691702a91bd558cd2a94963d274a995d1' into site-bug
# Conflicts: # src/india_api/internal/service/regions.py
2 parents cb5e972 + b86f9b8 commit dc62cb3

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[bumpversion]
22
commit = True
33
tag = True
4-
current_version = 0.1.43
4+
current_version = 0.1.45
55
message = Bump version: {current_version} → {new_version}
66

77
[bumpversion:file:src/india_api/internal/service/server.py]

src/india_api/internal/service/regions.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class GetSourcesResponse(BaseModel):
3131
@router.get(
3232
"/sources",
3333
status_code=status.HTTP_200_OK,
34+
include_in_schema=False,
3435
)
3536
def get_sources_route(auth: dict = Depends(auth)) -> GetSourcesResponse:
3637
"""Function for the sources route."""
@@ -60,6 +61,7 @@ def validate_source(source: str) -> str:
6061
@router.get(
6162
"/{source}/regions",
6263
status_code=status.HTTP_200_OK,
64+
include_in_schema=False,
6365
)
6466
def get_regions_route(
6567
source: ValidSourceDependency,
@@ -85,6 +87,7 @@ class GetHistoricGenerationResponse(BaseModel):
8587
@router.get(
8688
"/{source}/{region}/generation",
8789
status_code=status.HTTP_200_OK,
90+
include_in_schema=False,
8891
)
8992
def get_historic_timeseries_route(
9093
source: ValidSourceDependency,
@@ -126,6 +129,7 @@ class GetForecastGenerationResponse(BaseModel):
126129
@router.get(
127130
"/{source}/{region}/forecast",
128131
status_code=status.HTTP_200_OK,
132+
include_in_schema=False,
129133
)
130134
def get_forecast_timeseries_route(
131135
source: ValidSourceDependency,
@@ -180,6 +184,7 @@ def get_forecast_timeseries_route(
180184
@router.get(
181185
"/{source}/{region}/forecast/csv",
182186
response_class=FileResponse,
187+
include_in_schema=False,
183188
)
184189
def get_forecast_da_csv(
185190
source: ValidSourceDependency,

src/india_api/internal/service/server.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
logging.basicConfig(level=logging.DEBUG, stream=sys.stdout)
1616
log = logging.getLogger(__name__)
17-
version = "0.1.43"
17+
version = "0.1.45"
1818

1919

2020
tags_metadata = [
@@ -28,12 +28,13 @@
2828
"Each site will have one source of energy "
2929
"and there is forecast and generation data for each site. ",
3030
},
31-
{
32-
"name": "Regions",
33-
"description": "A region is an area of land e.g. Alaska in the USA. "
34-
"There is forecast and generation data for each region "
35-
"and there may be different sources of energy in one region.",
36-
},
31+
# I want to keep this here, as we might add this back in the future
32+
# {
33+
# "name": "Regions",
34+
# "description": "A region is an area of land e.g. Alaska in the USA. "
35+
# "There is forecast and generation data for each region "
36+
# "and there may be different sources of energy in one region.",
37+
# },
3738
]
3839

3940
title = "India API"

0 commit comments

Comments
 (0)