GrueneisR.RestClientGenerator
0.9.0
See the version list below for details.
dotnet add package GrueneisR.RestClientGenerator --version 0.9.0
NuGet\Install-Package GrueneisR.RestClientGenerator -Version 0.9.0
<PackageReference Include="GrueneisR.RestClientGenerator" Version="0.9.0" />
<PackageVersion Include="GrueneisR.RestClientGenerator" Version="0.9.0" />
<PackageReference Include="GrueneisR.RestClientGenerator" />
paket add GrueneisR.RestClientGenerator --version 0.9.0
#r "nuget: GrueneisR.RestClientGenerator, 0.9.0"
#:package GrueneisR.RestClientGenerator@0.9.0
#addin nuget:?package=GrueneisR.RestClientGenerator&version=0.9.0
#tool nuget:?package=GrueneisR.RestClientGenerator&version=0.9.0
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. |
-
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 |