https://github.com/franzasilva/minimalendpoints
Minimal API with JWT Auth, Swagger, Api Versioning and HealthChecks with UI
https://github.com/franzasilva/minimalendpoints
api-versioning authentication authorization dotnet-core dotnet8 dotnetcore healthcheck jwt minimal-api swagger
Last synced: 18 days ago
JSON representation
Minimal API with JWT Auth, Swagger, Api Versioning and HealthChecks with UI
- Host: GitHub
- URL: https://github.com/franzasilva/minimalendpoints
- Owner: franzASilva
- Created: 2024-09-04T16:44:50.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-12-30T18:16:05.000Z (6 months ago)
- Last Synced: 2025-06-13T05:03:40.612Z (18 days ago)
- Topics: api-versioning, authentication, authorization, dotnet-core, dotnet8, dotnetcore, healthcheck, jwt, minimal-api, swagger
- Language: C#
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal API with JWT Auth, Swagger, Api Versioning and HealthChecks with UI.
**For testing purposes only, pre-created Roles Admin and User and user admin with password 123**
- [.NET 9](https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview);
- [JWT](https://jwt.io/)
Swagger and Api Versioning with JWT Auth
Using Swagger and JWT Auth
When trying to use an api that requires auth without a token, you receive the 401 Unauthorized error
User admin and password 123 to get a token
Use token to authorize
Now... 200 OK
Use the user API to create new users and update then with a role.
We can only use DummyEndpoint with Admin or User roles, while in UserEndpoint we only need a valid token
Healthcheck with some details
https://localhost:7101/ready
Healthcheck live for use in containers
Healthcheck UI
Healthcheck UI - webhooks
Healthcheck UI - webhooks reporting