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
document
OpenApiDocumentThe OpenAPI definition of the interface.
code
StringBuilderThe 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
group
OpenApiOperationThe OpenAPI definition of the interface.
code
StringBuilderThe 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
method
CSharpOperationModelThe NSwag model of the method's OpenAPI definition.
hasApiResponse
boolIndicates whether the method returns an
ApiResponse
.hasDynamicQuerystringParameter
boolIndicates whether the method gets a dynamic querystring parameter
hasApizrRequestOptionsParameter
boolIndicates whether the method gets an IApizrRequestOptions options final parameter
code
StringBuilderThe builder to append the documentation to.