Skip to content

ASP.NET Core API with JWT authentication and authorization

Notifications You must be signed in to change notification settings

imwandama/TodoApi

 
 

Repository files navigation

Todo REST API with ASP.NET Core

CI

Todo REST API samples using ASP.NET Core minimal APIs. It showcases:

  • Using EntityFramework and SQLite for data access
  • JWT authentication
  • OpenAPI support
  • Rate Limiting
  • Writing tests for your REST API

Prerequisites

.NET

  1. Install .NET 7

Database

  1. Install the dotnet-ef tool: dotnet tool install dotnet-ef -g
  2. Navigate to the TodoApi folder and run dotnet ef database update to create the database.
  3. Learn more about dotnet-ef

Authentication

  1. Run dotnet user-jwts create --claim id=myid
  2. You should be able to use this JWT token to make requests to the endpoint
  3. Learn more about user-jwts

About

ASP.NET Core API with JWT authentication and authorization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.6%
  • Shell 0.4%