If you already have an existing solution and you just need to add an API Project to it, the API Project Template enables this by executing
dotnet new apiproject -n <name of your project>
The API Project template will just create an API project that can be used in any solution enabling you to develop an API project following the Vertical Slice Architecture and REPR Pattern with a project all ready preconfigured with:
- Ardalis API Endpoints
- Entity Framework
Ready for you to start coding your new API Endpoints.