Table of Contents

Class OpenApiDocumentFactory

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Creates an NSwag.OpenApiDocument from a specified path or URL.

public static class OpenApiDocumentFactory
Inheritance
OpenApiDocumentFactory
Inherited Members

Methods

CreateAsync(string)

Creates a new instance of the NSwag.OpenApiDocument class asynchronously.

public static Task<OpenApiDocument> CreateAsync(string openApiPath)

Parameters

openApiPath string

The path or URL to the OpenAPI specification.

Returns

Task<OpenApiDocument>

A new instance of the NSwag.OpenApiDocument class.