ApiCodeGenerator.OpenApi.Refit
3.0.0-rc.10
This is a prerelease version of ApiCodeGenerator.OpenApi.Refit.
There is a newer prerelease version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ApiCodeGenerator.OpenApi.Refit --version 3.0.0-rc.10
NuGet\Install-Package ApiCodeGenerator.OpenApi.Refit -Version 3.0.0-rc.10
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-rc.10"> <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.
paket add ApiCodeGenerator.OpenApi.Refit --version 3.0.0-rc.10
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ApiCodeGenerator.OpenApi.Refit, 3.0.0-rc.10"
#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.
// Install ApiCodeGenerator.OpenApi.Refit as a Cake Addin #addin nuget:?package=ApiCodeGenerator.OpenApi.Refit&version=3.0.0-rc.10&prerelease // Install ApiCodeGenerator.OpenApi.Refit as a Cake Tool #tool nuget:?package=ApiCodeGenerator.OpenApi.Refit&version=3.0.0-rc.10&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
The ApiCodeGenerator extension module implements code generation for the Refit library.
Installation
- Add the
ApiCodeGenerator.OpenApi.Refit
andRefit
packages to your project. - Add a document describing the API (in json or yaml format) and a corresponding nswag file with the same name (format description).
- In the nswag file, select the
OpenApiToRefitClient
generator. - 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.
-
.NETStandard 2.0
- ApiCodeGenerator.MSBuild (>= 3.0.0-rc.10 && < 4.0.0)
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.0-rc.21 | 56 | 10/22/2024 |
3.0.0-rc.19 | 72 | 10/15/2024 |
3.0.0-rc.10 | 45 | 9/25/2024 |