Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dotnet 5 web api with api-versioning, documentation through swagger, localization, claim based jwt token security, feature toggling, centralized logging/exception-handling, throttling, caching, etc.

License

NotificationsYou must be signed in to change notification settings

dotnetcore5/Dotnet.Sample.Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Centralized LoggingGitHub repo size in bytesGitHub top languageLines of codeCodacy Badge
LocalizationApi VersioningClaim-based-tokenFeature TogglingMaintainability
Central LoggingSwagger SupportVisual Studio 2019.Net FrameworkGitHub language count

swagger documentation

Repository codebase

The repository consists of projects as below:

#Project NameProject detaillocationEnvironment
1Dotnet.Sample.ApiDotnet5 WebApi as backendsrc\Api folder.Net Framework
2Dotnet.Sample.Api.TestsTests for webapisrc\Api.Test folder.Net Framework

Application Folder structure


application folder structure


Summary

The overall objective of the applications :

Through thelogin endpoint A user can Login and jwt authentication is used.

Once authorized, user can do "CRUD" operation on theproducts endpoint

Setup detail

Environment Setup detail

Download/install

  1. .Net Framework to run webapi project

  2. VS2019 to run/debug the applicationsOrVSCode to run/debug the applications

Project Setup detail
  1. Please clone or download the repository fromgithub

  2. Create a folder and place the downloaded repository and unzip if downloaded.

  3. Open the solution file throughVisual Studio 2019 or throughVisual Studio Code open the newly created folder where the repository is downloaded

(a) To start the webapi
  1. ThroughVisual Studio 2019, clickF5 button to run the webapi, Please make sure the webapi project is selected as startup project.

  2. Or throughVisual Studio Code, open a command terminal by pressing the computer keyboard buttonsControl and~

    (a) Within the terminal, browse to folder location named as"src\Api"

    (b) Restore the dependencies, typedotnet restore on the terminal

    (c) Run the webapi project, typedotnet run on the terminal

  3. WebApi shall start running on port5000

For better experience please use chrome browser
(b) To run the unit test project
  1. ThroughVisual Studio 2019, open theTest Explorer and run the tests.

  2. Or throughVisual 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, typedotnet test on the terminal


To-do:

caching

endpoint throttling/rate limit


Visitor BadgeGitHub contributorslicense

Flag Counter

About

dotnet 5 web api with api-versioning, documentation through swagger, localization, claim based jwt token security, feature toggling, centralized logging/exception-handling, throttling, caching, etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp