WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

thatjimmi/wind-park

Repository files navigation

Running the Application

Start the application using Docker Compose:

docker compose up

This will start the API on:

http://localhost:5000

API Endpoints

Get Current Status

curl -X GET http://localhost:5000/api/turbines/status

Returns the current status of the wind park:

  • Current production target and actual production
  • Market price
  • Status of each turbine
  • Financial metrics (revenue, cost, profit)

Set Market Price

curl -X POST http://localhost:5000/api/turbines/market-price \
  -H "Content-Type: application/json" \
  -d '{"price": 6.0}'

Updates the market price.

Adjust Production Target

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.


Running Tests

To run the tests:

dotnet test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published