Summary

Completed

In this module, you created an ASP.NET Core web API running on .NET. The web API creates, reads, updates, and deletes pizzas from an in-memory cache.

You learned that creating a web API with ASP.NET Core entails:

  1. Creating a new application by using the ASP.NET Core Web API template.
  2. Creating classes that inherit from the ControllerBase class and that contain methods that respond to HTTP requests.

Because this pattern allows you to focus on a single controller action at a time, you can create functional web APIs pretty quickly with a little practice.

In this module, you used an in-memory cache. This approach helped you to focus on learning web API concepts, but it has some obvious limitations for real-world applications. If the application stops, all your changes are lost!

In a real-world application, you'll want to store your data in a backing store, like a database. You can learn how to persist and retrieve relational data by using Entity Framework Core in this tutorial.

Videos for learning more

Articles for learning more