Added Enpoint for movAvg

main
mmaurostoffel 2025-01-12 20:38:16 +01:00
parent a571c8c40f
commit af1c2301a9
1 changed files with 9 additions and 0 deletions

View File

@ -82,3 +82,12 @@ def region_capacities_data(id_1: int, id_2: int):
capacities = etl_rcc.region_capacities_comparison(id_1, id_2) capacities = etl_rcc.region_capacities_comparison(id_1, id_2)
return capacities return capacities
@app.get("/region/{id}/movingAverage/{startDate}")
def region_capacities_data(id: int, startDate: str):
result = etl_rmA.region_movingAverage(id, startDate)
return result
@app.get("/region/{id}/properties/capacities")
def region_property_capacities_data(id: int):
capacities = etl_rpc.region_properties_capacities(id)
return capacities