Discover how to build robust web APIs with ASP.NET Core, the open-source framework for Windows, macOS, and Linux.
Overview
Syllabus
Introduction
- Building web APIs
- Why an API?
- What you should know
- Prerequisites and setup
- "Hello World," API style
- "Hello World" with Visual Studio Code
- Minimal APIs
- HTTP in a nutshell
- REST basics
- API design basics
- Tools for API testing
- Controllers and actions
- Routing basics
- Creating a data model
- Using Entity Framework Core
- Returning a list of items
- Using ActionResult
- Returning an item
- Handling errors
- Making the API asynchronous
- HTTP methods
- Model binding
- Adding an item with POST
- Model validation
- Updating an item with PUT
- Deleting an item with DELETE
- Challenge: Deleting several items
- Solution: Deleting several items
- Next steps
Taught by
Christian Wenz