-
Run Seq on Docker (run this in any terminal)
docker run --name seq -d --restart unless-stopped -e ACCEPT_EULA=Y -p 5341:80 datalust/seq:latest
- Install the dependencies (in terminal, in the root folder of this project)
dotnet restore
- Run the API (in terminal, in the root folder of this project)
dotnet run
- Check that it's working in Postman (in Postman, go Import > Raw Text > Paste the curl below)
curl --location --request GET 'http://localhost:5248/weatherforecast'
- Add the POST endpoint as well (in Postman, go Import > Raw Text > Paste the curl below)
curl --location --request POST 'http://localhost:5248/weatherforecast' \
--header 'Content-Type: application/json' \
--data-raw '"Spicy"'