Project templates with batteries included provide the minimum amount of code required to get you going. The ASP.NET Core API project template uses dotnet new to enable you to turn features of the project template on or off. Response caching is allows the use of the [ResponseCache] attribute on your action methods. Cache settings (cache profiles) are stored in the configuration file and referred to by name. Use the HTTPS scheme and TLS security across the entire site, redirects HTTP to HTTPS, and adds a Strict Transport Security (HSTS) HTTP header with preloading enabled. Both in-memory and distributed cache are configured. You do need to specify where the distributed cache stores its data. Allow configuring Kestrel security limits such as maximum request size via configuration and set sensible stricter defaults.
Features
- Add an example ASP.NET MVC Controller
- Swagger is a format for describing the endpoints in your API and letting you try out your site using its user interface
- Enable API versioning to version API endpoints
- Choose whether to use the XML input/output formatter and which serializer to use
- No XML formatter
- Select which source control provider you are using if any, to add provider specific features