In progress
Build a REST API with C# and .NET
A hands-on tutorial on building a REST API in C# / .NET, with JWT authentication, tests and a vanilla JavaScript frontend. Lessons are written and published as they are finished.
- HTTP and REST Concepts
- Solution and Project Planning
- .NET Project Types
- Dependency Injection Basics
- Service Lifetimes: Singleton
- What Is State, and Why Is Sharing It Dangerous?
- Service Lifetimes: Transient
- Service Lifetimes: Scoped
- JSON
- Asynchronous Code: async and await
- SQLite: A Database in One File
- Unit Testing Basics
- A Typical Web App Workflow: Frontend and API
- .NET Versions and Why Upgrades Are Routine
- Create the Solution and the API Project
- The First Endpoint and Swagger
- A Data Project and the First Table with EF Core