dotnet 5 web api with versioning, swagger, localization, policy-based jwt token based security, etc.
The repository consists of projects as below:
# | Project Name | Project detail | location | Environment |
---|---|---|---|---|
1 | Xero.Demo.Api | Dotnet5 WebApi as backend | src\Api folder | |
2 | Xero.Demo.Api.Tests | Tests for webapi | src\Api.Test folder |
The overall objective of the applications :
> A user can Login and jwt authentication is used
> Once authorized, user can do "CRUD" operation
Download/install
Within Visual Studio Code open a command terminal by pressing the computer keyboard buttons
Control
and~
Within the terminal, browse to folder location named as "src\Api"
Restore the dependencies, type
dotnet restore
on the terminalRun the webapi project, type
dotnet run
on the terminalApi [backend service] shall start running on port 5000
For better experience please chrome browser
Within Visual Studio Code Open a new command terminal
Within the new terminal, browse to the folder named as "src\Api.Test"
To run the tests, type
dotnet test
on the terminal
Having any trouble? Please read out this documentation or contact and to sort it out.