Class XmlDocumentationGenerator
Generator class for creating XML documentation.
public class XmlDocumentationGenerator
- Inheritance
-
XmlDocumentationGenerator
- Inherited Members
Methods
AppendInterfaceDocumentation(OpenApiDocument, StringBuilder)
Appends XML docs for the given interface definition to the given code builder. This uses the OpenAPI document's info description as the summary.
public void AppendInterfaceDocumentation(OpenApiDocument document, StringBuilder code)
Parameters
documentOpenApiDocumentThe OpenAPI definition of the interface.
codeStringBuilderThe builder to append the documentation to.
AppendInterfaceDocumentation(OpenApiOperation, StringBuilder)
Appends XML docs for the given interface definition to the given code builder. This uses the OpenAPI operation info to generate the summary and remarks.
public void AppendInterfaceDocumentation(OpenApiOperation group, StringBuilder code)
Parameters
groupOpenApiOperationThe OpenAPI definition of the interface.
codeStringBuilderThe builder to append the documentation to.
AppendMethodDocumentation(CSharpOperationModel, bool, bool, bool, StringBuilder)
Appends XML docs for the given method to the given code builder.
public void AppendMethodDocumentation(CSharpOperationModel method, bool hasApiResponse, bool hasDynamicQuerystringParameter, bool hasApizrRequestOptionsParameter, StringBuilder code)
Parameters
methodCSharpOperationModelThe NSwag model of the method's OpenAPI definition.
hasApiResponseboolIndicates whether the method returns an
ApiResponse.hasDynamicQuerystringParameterboolIndicates whether the method gets a dynamic querystring parameter
hasApizrRequestOptionsParameterboolIndicates whether the method gets an IApizrRequestOptions options final parameter
codeStringBuilderThe builder to append the documentation to.