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
- Install the dotnet-ef tool:
dotnet tool install dotnet-ef -g
- Navigate to the TodoApi folder and run
dotnet ef database update
to create the database. - Learn more about dotnet-ef
- Run
dotnet user-jwts create --claim id=myid
- You should be able to use this JWT token to make requests to the endpoint
- Learn more about user-jwts