Class XmlDocumentationGenerator
Generator class for creating XML documentation.
public class XmlDocumentationGenerator
- Inheritance
-
XmlDocumentationGenerator
- Inherited Members
Methods
AppendInterfaceDocumentationByEndpoint(OpenApiOperation, StringBuilder)
Generates an interface description from the summary of the given endpoint and appends it to the builder.
public void AppendInterfaceDocumentationByEndpoint(OpenApiOperation endpoint, StringBuilder code)
Parameters
endpointOpenApiOperationThe OpenAPI definition of the endpoint.
codeStringBuilderThe builder to append the documentation to.
AppendInterfaceDocumentationByTag(OpenApiDocument, string, StringBuilder)
Generates an interface description from the tags of the given OpenAPI document and appends it to the builder.
public void AppendInterfaceDocumentationByTag(OpenApiDocument document, string tag, StringBuilder code)
Parameters
documentOpenApiDocumentThe parent document of the controller.
tagstringThe controller tag that the endpoints were grouped by.
codeStringBuilderThe builder to append the documentation to.
AppendMethodDocumentation(CSharpOperationModel, bool, 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, bool hasCancellationToken, 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
hasCancellationTokenboolIndicates whether the method gets a cancellation token parameter
codeStringBuilderThe builder to append the documentation to.
AppendSingleInterfaceDocumentation(OpenApiDocument, StringBuilder)
Generates an interface description from the title of the given document and appends it to the builder.
public void AppendSingleInterfaceDocumentation(OpenApiDocument document, StringBuilder code)
Parameters
documentOpenApiDocumentThe OpenAPI definition of the document.
codeStringBuilderThe builder to append the documentation to.