.Net Service
The new .Net services use Minimal API architucture with .net 9. To start developing a Dotnet-based service, you need a bunch of tools to be installed. Please make sure you have these tools installed before going further.
Required Tools
Section titled “Required Tools”You need the following applications to start developing a .Net service:
- Visual Studio Professional as a main IDE. You could use Vistual Studio Code as well.
- Git
- PgAdmin. This tool is used to manage PostgreSQL database engine.
How to run the service locally
Section titled “How to run the service locally”In Visual Studio Code, press F5 and select which service you want to run. This will start the service on your local machine. You can access the service using https://localhost:{port} where {port} is the port number assigned to the service. You can find the port number in the appsettings.json file located in the folder of the service project.
Access swagger locally
Section titled “Access swagger locally”Once the service is running locally, you can access the Swagger UI by navigating to https://localhost:{port}/swagger in your web browser. This will provide you with an interactive interface to explore and test the API endpoints of the service.
Authorize by clicking on the Authorize button and enter api-testas a client id and continue by clicking on Authorize button again. You can now test the API endpoints directly from the Swagger UI.