Start the application using Docker Compose:
docker compose upThis will start the API on:
curl -X GET http://localhost:5000/api/turbines/statusReturns the current status of the wind park:
- Current production target and actual production
- Market price
- Status of each turbine
- Financial metrics (revenue, cost, profit)
curl -X POST http://localhost:5000/api/turbines/market-price \
-H "Content-Type: application/json" \
-d '{"price": 6.0}'Updates the market price.
curl -X POST http://localhost:5000/api/turbines/production-target \
-H "Content-Type: application/json" \
-d '{"delta": 5}'Adjusts the production target by the specified delta. Positive values increase the target, negative values decrease it.
To run the tests:
dotnet test