HttpGenerator 0.1.0.6-preview
This is a prerelease version of HttpGenerator.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global HttpGenerator --version 0.1.0.6-preview
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local HttpGenerator --version 0.1.0.6-preview
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=HttpGenerator&version=0.1.0.6-preview&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package HttpGenerator --version 0.1.0.6-preview
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HTTP File Generator
Generate .http files from OpenAPI specifications
.http
files were made populate by the Visual Studio Code extension REST Client, which then was adopted by the JetBrains IDE's, and later on Visual Studio 2022
Usage
USAGE:
httpgenerator [URL or input file] [OPTIONS]
EXAMPLES:
httpgenerator ./openapi.json
httpgenerator https://petstore.swagger.io/v2/swagger.json
httpgenerator ./openapi.json --output ./
ARGUMENTS:
[URL or input file] URL or file path to OpenAPI Specification file
OPTIONS:
DEFAULT
-h, --help Prints help information
-o, --output <OUTPUT> ./ Output directory
--no-logging Don't log errors or collect telemetry
Running the following:
httpgenerator https://petstore.swagger.io/v2/swagger.json
Outputs the following:
HTTP File Generator v0.1.0
Support key: mbmbqvd
OpenAPI statistics:
- Path Items: 14
- Operations: 20
- Parameters: 14
- Request Bodies: 9
- Responses: 20
- Links: 0
- Callbacks: 0
- Schemas: 67
Files: 20
Duration: 00:00:02.3089450
Which will produce the following files:
-rw-r--r-- 1 christian staff 299 Nov 13 22:40 AddPet.http
-rw-r--r-- 1 christian staff 276 Nov 13 22:40 CreateUser.http
-rw-r--r-- 1 christian staff 332 Nov 13 22:40 CreateUsersWithArrayInput.http
-rw-r--r-- 1 christian staff 330 Nov 13 22:40 CreateUsersWithListInput.http
-rw-r--r-- 1 christian staff 135 Nov 13 22:40 DeleteOrder.http
-rw-r--r-- 1 christian staff 115 Nov 13 22:40 DeletePet.http
-rw-r--r-- 1 christian staff 123 Nov 13 22:40 DeleteUser.http
-rw-r--r-- 1 christian staff 119 Nov 13 22:40 FindPetsByStatus.http
-rw-r--r-- 1 christian staff 115 Nov 13 22:40 FindPetsByTags.http
-rw-r--r-- 1 christian staff 117 Nov 13 22:40 GetInventory.http
-rw-r--r-- 1 christian staff 129 Nov 13 22:40 GetOrderById.http
-rw-r--r-- 1 christian staff 109 Nov 13 22:40 GetPetById.http
-rw-r--r-- 1 christian staff 117 Nov 13 22:40 GetUserByName.http
-rw-r--r-- 1 christian staff 107 Nov 13 22:40 LoginUser.http
-rw-r--r-- 1 christian staff 109 Nov 13 22:40 LogoutUser.http
-rw-r--r-- 1 christian staff 250 Nov 13 22:40 PlaceOrder.http
-rw-r--r-- 1 christian staff 297 Nov 13 22:40 UpdatePet.http
-rw-r--r-- 1 christian staff 111 Nov 13 22:40 UpdatePetWithForm.http
-rw-r--r-- 1 christian staff 296 Nov 13 22:40 UpdateUser.http
-rw-r--r-- 1 christian staff 135 Nov 13 22:40 UploadFile.http
In this example, the contents of AddPet.http
looks like this:
### POST /pet Request
POST https://petstore.swagger.io/v2/pet
Content-Type: application/json
{
"id": 0,
"category": {
"id": 0,
"name": "name"
},
"name": "name",
"photoUrls": [
""
],
"tags": [
{
"id": 0,
"name": "name"
}
],
"status": "available"
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
Version | Downloads | Last updated | |
---|---|---|---|
0.7.0 | 300 | 10/30/2024 | |
0.7.0-preview.15 | 45 | 10/30/2024 | |
0.7.0-preview.14 | 71 | 10/23/2024 | |
0.6.0 | 198 | 10/14/2024 | |
0.6.0-preview.13 | 1,261 | 10/4/2024 | |
0.5.0 | 232 | 9/20/2024 | |
0.5.0-preview.12 | 59 | 7/9/2024 | |
0.4.0 | 523,780 | 6/6/2024 | |
0.3.2 | 169,319 | 4/16/2024 | |
0.3.1 | 355 | 2/28/2024 | |
0.3.0 | 261 | 2/11/2024 | |
0.2.7 | 9,688 | 1/18/2024 | |
0.2.1.11-preview | 205 | 1/8/2024 | |
0.2.1.10-preview | 178 | 1/8/2024 | |
0.2.1.9-preview | 153 | 12/17/2023 | |
0.1.6 | 191,182 | 11/29/2023 | |
0.1.5 | 226 | 11/23/2023 | |
0.1.4 | 210 | 11/22/2023 | |
0.1.3 | 227 | 11/22/2023 | |
0.1.1 | 209 | 11/15/2023 | |
0.1.0.8-preview | 146 | 11/15/2023 | |
0.1.0.7-preview | 150 | 11/14/2023 | |
0.1.0.6-preview | 140 | 11/14/2023 | |
0.1.0.5-preview | 171 | 11/14/2023 | |
0.1.0.4-preview | 135 | 11/14/2023 | |
0.1.0.3-preview | 156 | 11/14/2023 |