This commit is contained in:
2020-01-28 20:08:36 +00:00
parent 1b81188806
commit 5ad9c95f8c
3 changed files with 29 additions and 44 deletions

View File

@@ -400,6 +400,7 @@ namespace AyaNova
$"/swagger/{description.GroupName}/swagger.json",
description.GroupName.ToUpperInvariant());
}
options.DocExpansion(Swashbuckle.AspNetCore.SwaggerUI.DocExpansion.None);
options.DefaultModelsExpandDepth(-1);//This is meant to hide the Models section that would appear at the bottom of the swagger ui showing *all* models from the api
options.DocumentTitle = "AyaNova API explorer";
options.RoutePrefix = "api-docs";