Master building efficient JSON APIs using ASP.NET Core's minimal APIs. Define endpoints, manage status codes, handle errors with Problem Details, and reuse code with IEndpointFilter.
Overview
Syllabus
- Lesson 1: Defining HTTP Endpoints in ASP.NET Core
- Defining HTTP Endpoints in ASP.NET Core
- Handling GET Requests
- Handling POST Requests
- Handling PUT Requests
- Handling DELETE Requests
- Lesson 2: Returning Status Codes with Results
- Exploring Minimal APIs in ASP.NET
- Return Appropriate Status from the GET Endpoint
- Return Appropriate Status from the POST Endpoint
- Return Appropriate Status from the DELETE Endpoint
- Lesson 3: Returning Useful Errors with Problem Details
- Building Todo API with ASP.NET Core
- Return Readable Errors with "Results.Problem()"
- Return Validation Errors with "Results.ValidationProblem()"
- Lesson 4: Returning Other Data Types in Minimal APIs
- Handling File Downloads in ASP.NET
- Creating a File Download Endpoint
- Creating a Byte Array Endpoint
- Creating a Stream endpoint