ApiCodeGenerator.OpenApi.Refit 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package ApiCodeGenerator.OpenApi.Refit --version 3.0.0
                    
NuGet\Install-Package ApiCodeGenerator.OpenApi.Refit -Version 3.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ApiCodeGenerator.OpenApi.Refit" Version="3.0.0">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ApiCodeGenerator.OpenApi.Refit" Version="3.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ApiCodeGenerator.OpenApi.Refit">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ApiCodeGenerator.OpenApi.Refit --version 3.0.0
                    
#r "nuget: ApiCodeGenerator.OpenApi.Refit, 3.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ApiCodeGenerator.OpenApi.Refit@3.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ApiCodeGenerator.OpenApi.Refit&version=3.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ApiCodeGenerator.OpenApi.Refit&version=3.0.0
                    
Install as a Cake Tool

NuGet Version GitHub License Codacy coverage

The ApiCodeGenerator extension module implements code generation for the Refit library.

Installation

  1. Add the ApiCodeGenerator.OpenApi.Refit and Refit packages to your project.
  2. Add a document describing the API (in json or yaml format) and a corresponding nswag file with the same name (format description).
  3. In the nswag file, select the OpenApiToRefitClient generator.
  4. Rebuild the project.

Now, an interface with the name specified in the nswag file (by default, it matches the document file name) will be available in the project.

You can read more about other generation settings in the ApiCodeGenerator project description.

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.2 47 1/15/2026
3.0.1 615 3/26/2025
3.0.0 362 12/13/2024
3.0.0-rc.24 109 12/5/2024
3.0.0-rc.21 116 10/22/2024
3.0.0-rc.19 144 10/15/2024
3.0.0-rc.10 91 9/25/2024