Web API Project Template
Create Your First Arcus Web API Project
First, install the template from NuGet:
> dotnet new --install Arcus.Templates.WebApi
When installed, the template can be created with shortname: arcus-webapi
:
> dotnet new arcus-webapi --name Arcus.Demo.WebAPI
Features
Creates a starter web API project with by default configured:
- Exception middleware to log unhandled exceptions thrown during request processing.
- Content negotiation that only supports
application/json
. - OpenAPI docs generation and UI (only available locally).
Configuration
And additional features available with options:
-A|--Authentication
(defaultNone
)SharedAccessKey
: adds [shared access key authentication](https://webapi.arcus-azure.net/features/None
: no authentication configured on the API project.