Class XmlDocumentationGenerator
- Namespace
- Refitter.Core
- Assembly
- Refitter.Core.dll
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, IReadOnlyList<string>, bool, StringBuilder, string?)
Appends XML docs for the given method to the given code builder.
public void AppendMethodDocumentation(CSharpOperationModel method, IReadOnlyList<string> parameters, bool hasApiResponse, StringBuilder code, string? dynamicQuerystringParameterType = null)
Parameters
methodCSharpOperationModelThe NSwag model of the method's OpenAPI definition.
parametersIReadOnlyList<string>The parameters the method is emitted with. The param tags are written for exactly these, so they always match the signature.
hasApiResponseboolIndicates whether the method returns an
ApiResponse.codeStringBuilderThe builder to append the documentation to.
dynamicQuerystringParameterTypestringThe type of the dynamic querystring wrapper parameter, when the method may have one.
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.