Summary – REST APIs

REST APIs facilitate communication between applications in today’s interconnected digital world. We explored the HTTP protocol, HTTP methods, HTTP status codes, and HTTP headers. We then explored API versioning, the Data Transfer Objects (DTOs), and the importance of API contracts. Here are a few Key Takeaways:

By now, you should have a solid understanding of REST APIs and be ready to explore how to implement one using ASP.NET Core. ASP.NET Core makes writing REST APIs using MVC or minimal APIs a breeze. MVC is a well-used pattern that is almost impossible to avoid. However, the new minimal API model makes the process leaner. Moreover, with application patterns like Request-EndPoint-Response (REPR) or Vertical Slice Architecture, we can organize our API per feature instead of by layer, leading to an improved organization. We cover those topics in Section 4: Application patterns.Next, we explore designing with ASP.NET Core, starting with Minimal APIs.

You may also like