.NET Tutorial - Your First Microservice

Run your service

In your command prompt, run the following command:

In your terminal, run the following command:

Terminal
dotnet run

Wait for the command to display that it's listening on http://localhost:5000, and then open a new browser window and navigate to http://localhost:5000/WeatherForecast

The API endpoint returns JSON data containing weather forecast information

Congratulations, you've got a simple service running!

Press CTRL+C on your command prompt to end the dotnet run command that is running the service locally.

Press CTRL+C on your terminal to end the dotnet run command that is running the service locally.

Continue