This commit is contained in:
@@ -10,6 +10,8 @@ UPDATE all the things before commencing work
|
|||||||
|
|
||||||
|
|
||||||
- API explorer should fill in v8 automatically to save typing
|
- API explorer should fill in v8 automatically to save typing
|
||||||
|
- doesn't appear to be a changed setting, probably changed how it works.
|
||||||
|
- Look into issues with project and how to specify
|
||||||
- Add automated test to retrieve a manual page to ensure it's working
|
- Add automated test to retrieve a manual page to ensure it's working
|
||||||
- Add automated test to retrieve metrics to know it's working
|
- Add automated test to retrieve metrics to know it's working
|
||||||
- Add automated test to retrieve apiroot page to know it's working
|
- Add automated test to retrieve apiroot page to know it's working
|
||||||
|
|||||||
@@ -181,7 +181,17 @@ namespace AyaNova
|
|||||||
options.DefaultApiVersion = Microsoft.AspNetCore.Mvc.ApiVersion.Parse("8.0");
|
options.DefaultApiVersion = Microsoft.AspNetCore.Mvc.ApiVersion.Parse("8.0");
|
||||||
options.ReportApiVersions = true;
|
options.ReportApiVersions = true;
|
||||||
});
|
});
|
||||||
services.AddVersionedApiExplorer(options => options.GroupNameFormat = "'v'VVV");
|
services.AddVersionedApiExplorer(options =>
|
||||||
|
{
|
||||||
|
|
||||||
|
// add the versioned api explorer, which also adds IApiVersionDescriptionProvider service
|
||||||
|
// note: the specified format code will format the version as "'v'major[.minor][-status]"
|
||||||
|
options.GroupNameFormat = "'v'VVV";
|
||||||
|
|
||||||
|
// 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
|
||||||
|
options.SubstituteApiVersionInUrl = true;
|
||||||
|
});
|
||||||
services.AddTransient<IConfigureOptions<SwaggerGenOptions>, ConfigureSwaggerOptions>();
|
services.AddTransient<IConfigureOptions<SwaggerGenOptions>, ConfigureSwaggerOptions>();
|
||||||
services.AddSwaggerGen(
|
services.AddSwaggerGen(
|
||||||
c =>
|
c =>
|
||||||
@@ -396,7 +406,7 @@ namespace AyaNova
|
|||||||
// ******************** TESTING WIPE DB *****************************
|
// ******************** TESTING WIPE DB *****************************
|
||||||
//
|
//
|
||||||
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
|
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
|
||||||
var TESTING_REFRESH_DB = true;//#######################################################################################
|
var TESTING_REFRESH_DB = false;//#######################################################################################
|
||||||
|
|
||||||
#if (DEBUG)
|
#if (DEBUG)
|
||||||
//TESTING
|
//TESTING
|
||||||
|
|||||||
Reference in New Issue
Block a user