https://github.com/mobiletelesystems/apicodegenerator.openapi.refit
Generate code for Refit library
https://github.com/mobiletelesystems/apicodegenerator.openapi.refit
Last synced: about 1 year ago
JSON representation
Generate code for Refit library
- Host: GitHub
- URL: https://github.com/mobiletelesystems/apicodegenerator.openapi.refit
- Owner: MobileTeleSystems
- License: apache-2.0
- Created: 2024-09-25T08:43:44.000Z (over 1 year ago)
- Default Branch: dev
- Last Pushed: 2025-03-26T13:33:04.000Z (about 1 year ago)
- Last Synced: 2025-04-23T05:59:32.838Z (about 1 year ago)
- Language: C#
- Homepage:
- Size: 55.7 KB
- Stars: 5
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.nuget.org/packages/ApiCodeGenerator.OpenApi.Refit)
[](https://github.com/MobileTeleSystems/ApiCodeGenerator.OpenApi.Refit/blob/dev/LICENSE)
[](https://app.codacy.com/gh/MobileTeleSystems/ApiCodeGenerator.OpenApi.Refit/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_coverage)
The [ApiCodeGenerator](https://github.com/MobileTeleSystems/ApiCodeGenerator) extension module implements code generation for the [Refit](https://github.com/reactiveui/refit) library.
# Installation
1. Add the `ApiCodeGenerator.OpenApi.Refit` and `Refit` packages to your project.
2. Add a document describing the API (in json or yaml format) and a corresponding nswag file with the same name ([format description](https://github.com/MobileTeleSystems/ApiCodeGenerator#nswag-file-format)).
1. In the nswag file, select the `OpenApiToRefitClient` generator.
3. Rebuild the project.
Now, an interface with the name specified in the nswag file (by default, it matches the document file name) will be available in the project.
You can read more about other generation settings in the [ApiCodeGenerator](https://github.com/MobileTeleSystems/ApiCodeGenerator) project description.