Class
OpenApiExporter
Exports API documentation to OpenAPI 3.0 format.
public sealed class OpenApiExporter : IApiDocumentationExporterInheritance #
Implements #
Inherited Members #
object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors #
| Name | Description |
|---|---|
| OpenApiExporter() | Initializes a new instance of the OpenApiExporter class. |
Properties #
| Name | Description |
|---|---|
| Contact | Gets or sets the contact information for the API. |
| License | Gets or sets the license information for the API. |
| OpenApiVersion | Gets or sets the OpenAPI version. Default is “3.0.0”. |
| ServerUrls | Gets or sets the server URLs for the API. |
| TermsOfService | Gets or sets the terms of service URL for the API. |
Methods #
| Name | Description |
|---|---|
| ExportDocumentationContent(ApiDocumentation) | Exports the specified API documentation content to OpenAPI format. |