GrueneisR.RestClientGenerator
0.11.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package GrueneisR.RestClientGenerator --version 0.11.0
NuGet\Install-Package GrueneisR.RestClientGenerator -Version 0.11.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="GrueneisR.RestClientGenerator" Version="0.11.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GrueneisR.RestClientGenerator" Version="0.11.0" />
<PackageReference Include="GrueneisR.RestClientGenerator" />
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 GrueneisR.RestClientGenerator --version 0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GrueneisR.RestClientGenerator, 0.11.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 GrueneisR.RestClientGenerator@0.11.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=GrueneisR.RestClientGenerator&version=0.11.0
#tool nuget:?package=GrueneisR.RestClientGenerator&version=0.11.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
This plugin is based on the OpenApi definition generated by the Swagger plugin. It reads this generated JSON file and generates an http file that then can be opened by REST client plugin.
Options
The plugin can be configured with the following options:
option | Default | description |
---|---|---|
SetFolder | C:\Temp | Folder to generate the http file in |
SetFilename | _requests.http | Name of the http file |
SetAction | swagger/v1/swagger.json | path of the OpenApi definition file |
EnableLogging | false | If called generates some additional output when generating the http file |
Usage
Add the following lines in Program.cs
of your WebApi project:
Configure
builder.Services.AddRestClientGenerator(options => options
.SetFolder(@"C:\Temp")
.SetFilename("_requests.http")
.SetAction("swagger/v1/swagger.json")
.EnableLogging()
);
Middleware
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseRestClientGenerator(); //Note: add after UseSwagger
app.UseSwaggerUI();
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 6.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 |
---|---|---|
1.3.1 | 1,157 | 12/12/2024 |
1.3.0 | 528 | 12/4/2024 |
1.2.3 | 834 | 6/26/2024 |
1.2.2 | 854 | 2/2/2024 |
1.2.1 | 650 | 11/16/2023 |
1.2.0 | 970 | 4/12/2023 |
1.1.2 | 717 | 3/9/2023 |
1.1.1 | 303 | 3/8/2023 |
1.1.0 | 307 | 3/8/2023 |
1.0.0 | 768 | 1/14/2023 |
0.11.0 | 703 | 9/27/2022 |
0.10.1 | 797 | 5/10/2022 |
0.9.2 | 712 | 4/9/2022 |
0.9.1 | 539 | 4/9/2022 |
0.9.0 | 533 | 4/9/2022 |
0.8.1 | 540 | 4/6/2022 |
0.8.0 | 534 | 4/6/2022 |