add comments to swagger
This commit is contained in:
parent
cd8df6bf54
commit
41f747e008
2 changed files with 11 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ public class Program
|
||||||
Array.Empty<string>()
|
Array.Empty<string>()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var filePath = Path.Combine(System.AppContext.BaseDirectory, "SurveyBackend.API.xml");
|
||||||
|
c.IncludeXmlComments(filePath);
|
||||||
});
|
});
|
||||||
|
|
||||||
var app = builder.Build();
|
var app = builder.Build();
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,14 @@
|
||||||
<RootNamespace>SurveyBackend</RootNamespace>
|
<RootNamespace>SurveyBackend</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
<DocumentationFile>bin\Debug\SurveyBackend.API.xml</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
|
||||||
|
<DocumentationFile>bin\Release\SurveyBackend.API.xml</DocumentationFile>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Update="appsettings.*.json">
|
<Content Update="appsettings.*.json">
|
||||||
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue