Join our book community on Discord
https://packt.link/EarlyAccess/
This chapter is about building web services using FastEndpoints, a popular third-party package that shuns controllers in favor of a more efficient way of defining the web service endpoints. While 95% of this book is about controller-based technologies, real-world web development shouldn’t be dogmatic about technology choices. This chapter is the only one that doesn’t use controllers, to show an alternative way to build web services that is popular with .NET developers.
Warning! You can skip this chapter if you want to religiously stick to only using controller-based technologies, but I believe that it’s beneficial for you to see an alternative way of building a web service. You can then decide if the benefits outweigh the costs.
ASP.NET Core Web API, ASP.NET Core OData, and FastEndpoints are all options for building web services (mostly for developers to call using HTTP, although user apps like...