# TodoApi **Repository Path**: anydev/TodoApi ## Basic Information - **Project Name**: TodoApi - **Description**: Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication. 使用 ASP.NET Core Blazor WASM、Minimal APIs 和身份验证实现 Todo 应用程序。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: davidfowl/auth - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-07-31 - **Last Updated**: 2024-10-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: API ## README ## Todo REST API with ASP.NET Core 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](https://dotnet.microsoft.com/en-us/download) ### Database 1. Install the **dotnet-ef** tool: `dotnet tool install dotnet-ef -g` 1. Navigate to the TodoApi folder and run `dotnet ef database update` to create the database. 1. Learn more about [dotnet-ef](https://learn.microsoft.com/en-us/ef/core/cli/dotnet) ### Authentication 1. Run `dotnet user-jwts create --claim id=myid` 1. You should be able to use this JWT token to make requests to the endpoint 1. Learn more about [user-jwts](https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis/security?view=aspnetcore-7.0#using-dotnet-user-jwts-to-improve-development-time-testing)