An open API service indexing awesome lists of open source software.

https://github.com/lucassklp/rx.http.codegen

Code generator for Rx.Http using OpenApi protocol
https://github.com/lucassklp/rx.http.codegen

dotnet-core dotnet-tool http http-client source-generator

Last synced: 3 months ago
JSON representation

Code generator for Rx.Http using OpenApi protocol

Awesome Lists containing this project

README

          

# Rx.Http.CodeGen




nuget







nuget version

This tool is used to generate [Rx.Http consumer](https://github.com/lucassklp/Rx.Http?tab=readme-ov-file#consumers) based on OpenApi definition file.

## Installation

```sh
dotnet tool install --global Rx.Http.CodeGen --version 1.0.0-alpha.3
```

## Usage (Example)

```sh
rx-http-codegen --namespace Swagger.Petstore --output Petstore --url https://petstore.swagger.io/v2/swagger.json
```

### Avalable options
```
-f, --file Set the OpenApi definition file location
-u, --url Set the OpenApi definition url location
-n, --namespace Required. The name of the namespace of generated source
-o, --output Required. The output Consumer Class Name
-t, --type (Default: object) Set the default type for unknown models. Possible values: 'object' or 'dictionary'
-v, --verbose (Default: false) Define if debug logs will appear
--help Display this help screen.
--version Display version information.
```