Refine .dockerignore to exclude test files and update response model type in simulate endpoint to use 'Any' instead of 'any'
This commit is contained in:
@@ -46,5 +46,4 @@ Dockerfile
|
|||||||
*.log
|
*.log
|
||||||
|
|
||||||
# Testing
|
# Testing
|
||||||
test_*.py
|
|
||||||
*_test.py
|
*_test.py
|
||||||
|
|||||||
2
main.py
2
main.py
@@ -1480,7 +1480,7 @@ async def health_check():
|
|||||||
"""Health check endpoint"""
|
"""Health check endpoint"""
|
||||||
return HealthCheckResponse(status="healthy", message="Soil water balance model API is running")
|
return HealthCheckResponse(status="healthy", message="Soil water balance model API is running")
|
||||||
|
|
||||||
@app.post("/simulate", response_model=Dict[str, any])
|
@app.post("/simulate", response_model=Dict[str, Any])
|
||||||
async def simulate_soil_water_balance(request: SimulationRequest):
|
async def simulate_soil_water_balance(request: SimulationRequest):
|
||||||
"""
|
"""
|
||||||
Run soil water balance simulation
|
Run soil water balance simulation
|
||||||
|
|||||||
Reference in New Issue
Block a user