The repository consists of projects as below:
# | Project Name | Project detail | location | Environment |
---|---|---|---|---|
1 | Dotnet.Sample.Api | Dotnet5 WebApi as backend | src\Api folder | |
2 | Dotnet.Sample.Api.Tests | Tests for webapi | src\Api.Test folder |
The overall objective of the applications :
Through the endpoint A user can Login and jwt authentication is used.
Once authorized, user can do "CRUD" operation on the endpoint
Download/install
Through Visual Studio 2019, click F5 button to run the webapi, Please make sure the webapi project is selected as startup project.
Or through Visual Studio Code, open a command terminal by pressing the computer keyboard buttons
Control
and~
(a) Within the terminal, browse to folder location named as "src\Api"
(b) Restore the dependencies, type
dotnet restore
on the terminal(c) Run the webapi project, type
dotnet run
on the terminalWebApi shall start running on port 5000
For better experience please use chrome browser
Through Visual Studio 2019, open the Test Explorer and run the tests.
Or through Visual Studio Code Open a new command terminal
(a) Within the new terminal, browse to the folder named as "src\Api.Test"
(b) To run the tests, type
dotnet test
on the terminal
caching
endpoint throttling/rate limit