This is a workshop, not a lecture. Each module is a short instructor-led concepts segment, where the feature is built live with the decisions explained, followed by a lab where you implement it yourself in your own copy of Roastery.
Every lab ends at a git checkpoint tag, so if you fall behind you can always catch up and keep building with the room. You leave with a working codebase and patterns you can reuse on Monday morning.
Who it's for
Developers new to Minimal APIs, and those who have built them since .NET 6 and want to sharpen their security and scalability skills.
Roastery: a menu anyone can browse, orders for signed-in customers, and a fulfillment side where baristas advance orders from Pending to PickedUp. By 5 PM it is persisted, secured, cached, resilient to a flaky payment provider, tested, and running in Aspire.
What you'll be able to do
- Design RESTful endpoints with Minimal API routing, endpoint groups, and dependency injection
- Model a domain and build full CRUD with EF Core and SQLite
- Secure endpoints with JWT bearer tokens and role-, claim-, and policy-based authorization
- Apply HTTPS enforcement, secure headers, rate limiting, and OWASP mitigations
- Add output caching, resilience, integration tests, and OpenAPI tooling
- Run the API in a container under the .NET Aspire dashboard
Agenda
- 01Welcome, environment check, and the Roastery tour20 min
- 02Fundamentals and the endpoint pipeline70 min
- 03Data, validation, and the shape of a good API75 min
- 04Identity, tokens, and authorization75 min
- 05Performance, resilience, and testing75 min
- 06Aspire, containers, and shipping55 min
- 07Wrap-up, retrospective, and where to go next20 min
Prerequisites
- Working knowledge of C# and ASP.NET Core
- A laptop with the .NET 10 SDK, SQLite, and Postman installed
- About fifteen minutes of pre-work to verify your environment