{ "$schema": "http://json.schemastore.org/template", "author": "Microsoft", "classifications": [ "Web", "WebAPI" ], "name": "ASP.NET Core Web API", "generatorVersions": "[1.0.0.0-*)", "description": "A project template for creating an ASP.NET Core application with an example Controller for a RESTful HTTP service. This template can also be used for ASP.NET Core MVC Views and Controllers.", "groupIdentity": "Microsoft.Web.WebApi", "precedence": "3000", "identity": "Microsoft.Web.WebApi.CSharp.2.1", "shortName": "webapi", "thirdPartyNotices": "https://aka.ms/template-3pn", "tags": { "language": "C#", "type": "project" }, "sourceName": "Company.WebApplication1", "preferNameDirectory": true, "guids": [ "09732173-2cef-46b7-83db-1334bcb079d3", // Tenant ID "53bc9b9d-9d6a-45d4-8429-2a2761773502" // Client ID ], "sources": [ { "modifiers": [ { "condition": "(TargetFrameworkOverride == '')", "exclude": [ "app.config" ] }, { "condition": "(windir == 'C:\\Windows')", "exclude": [ "Properties/launchSettings.json" ] }, { "condition": "(ExcludeLaunchSettings)", "exclude": [ "Properties/launchSettings.json" ] } ] } ], "symbols": { "auth": { "type": "parameter", "datatype": "choice", "choices": [ { "choice": "None", "description": "No authentication" }, { "choice": "IndividualB2C", "description": "Individual authentication with Azure AD B2C" }, { "choice": "SingleOrg", "description": "Organizational authentication for a single tenant" }, { "choice": "Windows", "description": "Windows authentication" } ], "defaultValue": "None", "description": "The type of authentication to use" }, "AAdB2CInstance": { "type": "parameter", "datatype": "string", "defaultValue": "https://login.microsoftonline.com/tfp/", "replaces": "https:////login.microsoftonline.com/tfp/", "description": "The Azure Active Directory B2C instance to connect to (use with IndividualB2C auth)." }, "SignUpSignInPolicyId": { "type": "parameter", "datatype": "string", "defaultValue": "", "replaces": "MySignUpSignInPolicyId", "description": "The sign-in and sign-up policy ID for this project (use with IndividualB2C auth)." }, "AADInstance": { "type": "parameter", "datatype": "string", "defaultValue": "https://login.microsoftonline.com/", "replaces": "https:////login.microsoftonline.com/", "description": "The Azure Active Directory instance to connect to (use with SingleOrg auth)." }, "ClientId": { "type": "parameter", "datatype": "string", "replaces": "11111111-1111-1111-11111111111111111", "description": "The Client ID for this project (use with SingleOrg or IndividualB2C auth)." }, "Domain": { "type": "parameter", "datatype": "string", "replaces": "qualified.domain.name", "description": "The domain for the directory tenant (use with SingleOrg or IndividualB2C auth)." }, "TenantId": { "type": "parameter", "datatype": "string", "replaces": "22222222-2222-2222-2222-222222222222", "description": "The TenantId ID of the directory to connect to (use with SingleOrg auth)." }, "OrgReadAccess": { "type": "parameter", "datatype": "bool", "defaultValue": "false", "description": "Whether or not to allow this application read access to the directory (only applies to SingleOrg auth)." }, "UserSecretsId": { "type": "parameter", "datatype": "string", "replaces": "aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502", "defaultValue": "aspnet-Company.WebApplication1-53bc9b9d-9d6a-45d4-8429-2a2761773502", "description": "The ID to use for secrets (use with OrgReadAccess or Individual auth)." }, "ExcludeLaunchSettings": { "type": "parameter", "datatype": "bool", "defaultValue": "false", "description": "Whether to exclude launchSettings.json in the generated template." }, "HttpPort": { "type": "parameter", "datatype": "integer", "description": "Port number to use for the HTTP endpoint in launchSettings.json." }, "HttpPortGenerated": { "type": "generated", "generator": "port" }, "HttpPortReplacer": { "type": "generated", "generator": "coalesce", "parameters": { "sourceVariableName": "HttpPort", "fallbackVariableName": "HttpPortGenerated" }, "replaces": "8080" }, "HttpsPort": { "type": "parameter", "datatype": "integer", "description": "Port number to use for the HTTPS endpoint in launchSettings.json. This option is only applicable when the parameter no-https is not used (no-https will be ignored if either IndividualAuth or OrganizationalAuth is used)." }, "HttpsPortGenerated": { "type": "generated", "generator": "port", "parameters": { "low": 44300, "high": 44399 } }, "HttpsPortReplacer": { "type": "generated", "generator": "coalesce", "parameters": { "sourceVariableName": "HttpsPort", "fallbackVariableName": "HttpsPortGenerated" }, "replaces": "44300" }, "OrganizationalAuth": { "type": "computed", "value": "(auth == \"SingleOrg\")" }, "WindowsAuth": { "type": "computed", "value": "(auth == \"Windows\")" }, "SingleOrgAuth": { "type": "computed", "value": "(auth == \"SingleOrg\")" }, "IndividualAuth": { "type": "computed", "value": "(auth == \"IndividualB2C\")" }, "IndividualB2CAuth": { "type": "computed", "value": "(auth == \"IndividualB2C\")" }, "NoAuth": { "type": "computed", "value": "(!(IndividualAuth || OrganizationalAuth || WindowsAuth))" }, "RequiresHttps": { "type": "computed", "value": "(OrganizationalAuth || IndividualAuth || !NoHttps)" }, "NoHttps": { "type": "parameter", "datatype": "bool", "defaultValue": "false", "description": "Whether to turn off HTTPS. This option only applies if IndividualAuth or OrganizationalAuth are not being used." }, "UseLocalDB": { "type": "parameter", "datatype": "bool", "defaultValue": "false", "description": "Whether to use LocalDB instead of SQLite. This option only applies if --auth Individual or --auth IndividualB2C is specified." }, "TargetFrameworkOverride": { "type": "parameter", "description": "Overrides the target framework", "replaces": "TargetFrameworkOverride", "datatype": "string", "defaultValue": "" }, "Framework": { "type": "parameter", "description": "The target framework for the project.", "datatype": "choice", "choices": [ { "choice": "netcoreapp2.1", "description": "Target netcoreapp2.1" } ], "replaces": "netcoreapp2.1", "defaultValue": "netcoreapp2.1" }, "copyrightYear": { "type": "generated", "generator": "now", "replaces": "copyrightYear", "parameters": { "format": "yyyy" } }, "skipRestore": { "type": "parameter", "datatype": "bool", "description": "If specified, skips the automatic restore of the project on create.", "defaultValue": "false" } }, "primaryOutputs": [ { "path": "Company.WebApplication1.csproj" } ], "defaultName": "WebApplication1", "postActions": [ { "condition": "(!skipRestore)", "description": "Restore NuGet packages required by this project.", "manualInstructions": [ { "text": "Run 'dotnet restore'" } ], "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025", "continueOnError": true } ] }