This is a template for creating a .NET web API project. It includes the necessary files and structure to get started quickly with building a minimal web API using the latest .NET SDK.
MinimalApi.Template is a project template designed to help developers quickly set up a .NET web minimal API project. It provides a basic structure and configuration to get you started with building your API without having to worry about the initial setup.
- .NET 10.0 SDK
The package is available on BaGet, to install it use the following command in your terminal:
dotnet new install MinimalApi.TemplateWarning
If you see the message "Could not install MinimalApi.Template. The package does not exist."
You will need to run the command with the --force option to install the template correctly, as shown in the line below.
dotnet new install MinimalApi.Template --forceImportant
Since the template is published to Baget (and not to NuGet), you need to add a new dedicated NuGet source using the following command:
dotnet nuget add source http://nuget.aepserver.it/v3/index.json --allow-insecure-connections --name BagetTo delete the template, it using the following command in the terminal:
dotnet new uninstall MinimalApi.TemplateTip
To update the template, you will need to uninstall the template and then reinstall it using the terminal commands above.
To create a new Web API project using this template, run the following command in your terminal:
dotnet new minimalapi -n <YourProjectName>This project is licensed under the MIT License - see the LICENSE file for details.
Don't forget that if you find this project helpful, please give it a ⭐ on GitHub to show your support and help others discover it.
Contributions are always welcome. Feel free to report issues and submit pull requests to the repository, following the steps below:
- Fork the repository
- Create a feature branch (starting from the develop branch)
- Make your changes
- Submit a pull requests (targeting develop) -->