rapicgen 1.4.39

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global rapicgen --version 1.4.39                
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 rapicgen --version 1.4.39                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=rapicgen&version=1.4.39                
nuke :add-package rapicgen --version 1.4.39                

Cross Platform Command Line Tool

All custom tools mentioned above are also implemented in a cross platform command line application

Requirements
  • .NET Core 2.1 runtime
  • Java Runtime Environment
  • NPM

Installation

The tool can be installed as a .NET Core global tool that you can call from the shell / command line

dotnet tool install --global rapicgen

or by following the instructions here to install a specific version of tool

Usage

Since the tool is published as a .NET Core Tool, it can be launched from anywhere using any command line interface by calling rapicgen. The help information is displayed when not specifying any arguments to rapicgen

Usage: run [options] [command]

Options:
  -v|--verbose  Show verbose output
  -?|-h|--help  Show help information

Commands:
  autorest      Generate Swagger / Open API client using AutoRest
  nswag         Generate Swagger / Open API client using NSwag
  openapi       Generate Swagger / Open API client using OpenAPI Generator
  swagger       Generate Swagger / Open API client using Swagger Codegen CLI

Run 'run [command] --help' for more information about a command.

Some help information is also provided per command and can be launched by

$ rapicgen [command name] -?

For example:

$ rapicgen autorest -?

will output this:

Generate Swagger / Open API client using AutoRest

Usage: run autorest [options] <swaggerFile> <namespace> <outputFile>

Arguments:
  swaggerFile   Path to the Swagger / Open API specification file
  namespace     Default namespace to in the generated code
  outputFile    Output filename to write the generated code to. Default is the swaggerFile .cs

Options:
  -?|-h|--help  Show help information

Usage Examples:

Let's say we have a OpenAPI Specifications document called Swagger.json

For starters, we can use the Swagger Petstore spec. Here's an example powershell script for downloading it

Invoke-WebRequest -Uri https://petstore.swagger.io/v2/swagger.json -OutFile Swagger.json

In case you don't have the CLI tool installed you can install it by

dotnet tool install --global rapicgen

Here's an example of how to generate code using AutoRest

$ rapicgen autorest Swagger.json GeneratedCode ./AutoRestOutput.cs

Here's an example of how to generate code using NSwag

$ rapicgen nswag Swagger.json GeneratedCode ./NSwagOutput.cs

Here's an example of how to generate code using Swagger Codegen CLI

$ rapicgen swagger Swagger.json GeneratedCode ./SwaggerOutput.cs

And last but but not the least, here's an example of how to generate code using OpenAPI Generator

$ rapicgen openapi Swagger.json GeneratedCode ./OpenApiOutput.cs
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
1.16.0 2,163 11/8/2024
1.15.0 5,527 10/13/2024
1.14.0 1,420 10/7/2024
1.11.0 6,801 9/6/2024
1.10.9 292,314 8/19/2024
1.10.8 123,661 8/12/2024
1.10.7 364,536 7/19/2024
1.10.6 200,900 7/7/2024
1.10.5 71,420 7/2/2024
1.10.4 89,837 6/25/2024
1.10.3 148,619 6/7/2024
1.10.2 90,699 5/27/2024
1.10.1 159,144 5/7/2024
1.10.0 1,054 5/5/2024
1.9.8 12,421 3/11/2024
1.9.7 553 3/10/2024
1.9.6 23,075 2/8/2024
1.9.5 1,348 2/4/2024
1.9.4 60,386 1/13/2024
1.9.3 29,074 1/10/2024
1.9.2 65,835 12/24/2023
1.9.1 6,931 12/14/2023
1.9.0 7,842 12/10/2023
1.8.10 52,997 11/13/2023
1.8.9 1,595 11/10/2023
1.8.8 1,915 11/5/2023
1.8.7 8,175 10/6/2023
1.8.6 4,424 9/22/2023
1.8.5 3,885 9/11/2023
1.8.4 1,564 9/9/2023
1.8.3 2,381 9/4/2023
1.8.2 2,986 8/27/2023
1.8.1 5,473 8/9/2023
1.8.0 2,640 8/4/2023
1.7.18 5,828 7/16/2023
1.7.17 8,030 6/17/2023
1.7.16 2,546 6/11/2023
1.7.15 6,710 5/17/2023
1.7.14 2,363 5/12/2023
1.7.13 4,368 4/30/2023
1.7.12 3,616 4/19/2023
1.7.11 1,602 4/18/2023
1.7.10 1,326 4/18/2023
1.7.9 3,645 4/7/2023
1.7.8 2,457 4/2/2023
1.7.7 4,567 3/19/2023
1.7.6 1,383 3/19/2023
1.7.5 1,094 3/19/2023
1.7.4 2,324 3/15/2023
1.7.3 2,795 3/10/2023
1.7.2 1,963 3/7/2023
1.7.1 2,980 3/1/2023
1.7.0 1,917 2/27/2023
1.6.98 3,305 2/19/2023
1.6.97 3,023 2/14/2023
1.6.96 2,804 2/8/2023
1.6.95 1,686 2/7/2023
1.6.94 2,418 2/3/2023
1.6.93 1,728 2/2/2023
1.6.92 2,351 1/30/2023
1.6.91 2,225 1/27/2023
1.6.90 1,437 1/27/2023
1.6.89 3,372 1/22/2023
1.6.88 1,884 1/22/2023
1.6.86 6,053 1/5/2023
1.6.85 1,819 1/5/2023
1.6.80 3,745 12/29/2022
1.6.79 4,512 12/17/2022
1.6.78 6,439 11/28/2022
1.6.77 1,967 11/28/2022
1.6.76 1,974 11/28/2022
1.6.75 1,686 11/28/2022
1.6.74 1,572 11/28/2022
1.6.73 1,742 11/28/2022
1.5.72 6,876 11/2/2022
1.5.71 2,668 10/29/2022
1.5.70 3,028 10/22/2022
1.5.69 4,605 10/9/2022
1.5.68 2,010 10/9/2022
1.5.67 9,203 9/1/2022
1.5.66 2,246 8/29/2022
1.5.65 1,795 8/28/2022
1.5.64 2,475 8/24/2022
1.5.63 2,699 8/20/2022
1.5.62 2,296 8/18/2022
1.5.61 1,623 8/18/2022
1.5.60 3,367 8/12/2022
1.5.59 1,989 8/10/2022
1.5.58 1,869 8/10/2022
1.5.57 1,996 8/10/2022
1.5.56 1,666 8/10/2022
1.5.55 1,578 8/10/2022
1.5.54 1,747 8/10/2022
1.5.51 2,338 8/6/2022
1.5.50 6,815 7/5/2022
1.5.49 3,940 6/19/2022
1.5.48 3,997 6/7/2022
1.5.47 12,461 3/4/2022
1.5.46 3,836 2/17/2022
1.5.45 1,896 2/13/2022
1.5.44 4,093 1/23/2022
1.4.43 1,889 1/23/2022
1.4.42 1,775 1/22/2022
1.4.41 4,040 12/26/2021
1.4.40 1,717 12/26/2021
1.4.39 2,169 12/18/2021
1.4.38 2,578 12/11/2021
1.4.37 2,286 12/4/2021
1.4.36 1,888 11/30/2021
1.4.35 1,930 11/27/2021
1.4.34 2,800 11/21/2021
1.4.33 2,727 11/16/2021
1.4.32 1,772 11/15/2021
1.4.31 1,681 11/15/2021
1.4.30 6,364 10/22/2021
1.4.10 5,045 10/2/2021
1.4.9 2,009 10/2/2021
1.4.8 1,550 10/2/2021
1.4.7 1,701 10/2/2021
1.4.6 1,786 10/2/2021
1.4.5 1,617 10/2/2021
1.3.7741 7,613 8/29/2021
1.3.7613 4,580 8/16/2021
1.2.7536 3,358 8/7/2021
1.2.7037 14,088 6/12/2021
1.2.6859 6,783 5/21/2021
1.2.6685 6,168 5/1/2021
1.2.6442 5,979 4/13/2021
1.2.6432 1,826 4/12/2021
1.2.6359 3,640 4/5/2021
1.2.6274 2,766 4/1/2021
1.2.6222 2,308 3/28/2021
1.2.6213 2,262 3/26/2021
1.2.6153 3,144 3/20/2021
1.2.6142 2,096 3/19/2021
1.2.5901 6,785 3/1/2021
1.1.4934 2,975 1/10/2021
1.1.4697 2,155 12/26/2020
1.1.4559 1,831 12/16/2020
1.1.4470 1,700 12/12/2020
1.1.4142 2,204 12/3/2020
1.1.3189 2,656 11/11/2020
1.1.3147 2,010 11/7/2020
1.1.3012 2,254 10/31/2020
1.1.2795 1,731 10/22/2020
1.1.2631 1,898 10/13/2020
1.1.2531 1,773 9/27/2020
1.1.2400 2,015 9/2/2020
1.1.2394 2,086 9/1/2020
1.1.2301 2,042 8/18/2020
1.1.2039 1,917 6/15/2020
1.1.2007 2,042 6/3/2020
1.1.1943 1,879 5/21/2020
1.1.1895 1,955 5/11/2020
1.1.1852 1,873 5/4/2020
1.1.1823 1,960 4/26/2020
1.1.1784 2,041 4/21/2020
1.1.1715 1,852 4/6/2020
1.1.1682 1,816 3/29/2020
1.1.1586 2,037 3/22/2020
1.1.1549 1,906 3/16/2020
1.1.1318 1,978 3/3/2020
1.1.1152 1,965 2/17/2020
1.1.1067 2,216 2/10/2020
1.1.1003 1,911 2/7/2020
1.1.788 2,220 1/17/2020
1.1.778 2,369 1/4/2020
1.1.775 2,297 12/19/2019
1.1.753 1,949 12/2/2019
1.1.742 2,088 11/24/2019
1.1.741 1,970 11/21/2019
1.1.740 2,166 11/21/2019
1.1.738 2,043 11/21/2019
1.1.737 2,091 11/21/2019
1.0.0 2,227 11/21/2019