GiganticBucket / TodoApi

ASP.NET Core API with JWT authentication and authorization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:C# 99.6%Language:Shell 0.4%