This commit is contained in:
2019-10-23 21:54:07 +00:00
parent 09da3dd50a
commit cd26b55fd8
2 changed files with 2 additions and 5 deletions

View File

@@ -190,6 +190,8 @@ namespace AyaNova
// note: this option is only necessary when versioning by url segment. the SubstitutionFormat
// can also be used to control the format of the API version in route templates
//THIS IS WHAT ADDS THE API version PARAMETER AUTOMATICALLY so you don't need to type an 8 in every swagger-ui route test
options.SubstituteApiVersionInUrl = true;
});
services.AddTransient<IConfigureOptions<SwaggerGenOptions>, ConfigureSwaggerOptions>();