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
- Host: GitHub
- URL: https://github.com/lucassklp/rx.http.codegen
- Owner: lucassklp
- Created: 2024-05-31T08:25:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-05T16:16:52.000Z (about 1 year ago)
- Last Synced: 2025-03-05T17:27:35.529Z (about 1 year ago)
- Topics: dotnet-core, dotnet-tool, http, http-client, source-generator
- Language: C#
- Homepage:
- Size: 1.94 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rx.Http.CodeGen
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.
```