Implementing FastEndpoints
Let's build a web service using FastEndpoints that provides endpoints to work with customers in Northwind, so that you can see the different with Web API and OData.
Adding FastEndpoints to an empty ASP.NET Core project
To see how to implement FastEndpoints, we will start with the simplest ASP.NET Core project:
- Use your preferred code editor to open the
MatureWeb
solution and then add a new project, as defined in the following list:- Project template: ASP.NET Core Empty /
web
- Solution file and folder:
MatureWeb
- Project file and folder:
Northwind.FastEndpoints
- Project template: ASP.NET Core Empty /
- If you are using Visual Studio, then confirm the following defaults have been chosen:
- Framework: .NET 9.0 (Standard Term Support)
- Configure for HTTPS: Selected
- Enable container support: Cleared
- Do not use top-level statements: Cleared
- If you are using VS Code or Rider, then in the
MatureWeb
directory, at the command prompt or terminal, enter the following commands:
dotnet new web -o Northwind...