Table of Contents

Class RefitGenerator

Namespace
Refitter.Core
Assembly
Refitter.Core.dll

Generates Refit clients and interfaces based on an OpenAPI specification.

public class RefitGenerator
Inheritance
RefitGenerator
Inherited Members

Constructors

RefitGenerator(RefitGeneratorSettings, OpenApiDocument)

Generates Refit clients and interfaces based on an OpenAPI specification.

public RefitGenerator(RefitGeneratorSettings settings, OpenApiDocument document)

Parameters

settings RefitGeneratorSettings
document OpenApiDocument

Methods

CreateAsync(RefitGeneratorSettings)

Creates a new instance of the RefitGenerator class asynchronously.

public static Task<RefitGenerator> CreateAsync(RefitGeneratorSettings settings)

Parameters

settings RefitGeneratorSettings

The settings used to configure the generator.

Returns

Task<RefitGenerator>

A new instance of the RefitGenerator class.

Generate()

Generates Refit clients and interfaces based on an OpenAPI specification and returns the generated code as a string.

public string Generate()

Returns

string

The generated code as a string.

GenerateMultipleFiles()

public GeneratorOutput GenerateMultipleFiles()

Returns

GeneratorOutput