Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 495 Bytes

readme.md

File metadata and controls

22 lines (16 loc) · 495 Bytes

Example minimal api

Simple

dotnet run

Minimal with auth/rate limiting/caching

dotnet run
curl -i http://localhost:{port}/info
dotnet user-jwts create --role "user" --role "admin"
curl -i -H "Authorization: Bearer {token}" https://localhost:{port}/hello
curl -i -H "Authorization: Bearer {token}" https://localhost:{port}/auth/test
curl -i -H "Authorization: Bearer {token}" https://localhost:{port}/auth/admin

todo

Example of output cache and response cache