Skip to content
r.

refitter

christianhelle/refitter · Public GitHub repository

Generate Refit interfaces and contracts from OpenAPI (Swagger) specifications

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

refitter live demo screenshot
Captured from the live demo · 2026-11-06

About this project

Author-written excerpt from the project README.

Refitter is a tool for generating a C# REST API Client using the Refit library. Refitter can generate the Refit interface and contracts from OpenAPI specifications. Refitter could format the generated Refit interface to be managed by Apizr (v6+) and generate some registration helpers too.

Upgrading to v2.0.0? Review the Breaking Changes (v2.0.0) guide. Source-generator projects may now need an explicit Refit reference, and the OpenAPI parser upgrade should be treated as a regenerate-review-test migration step rather than a fully proven behavioral no-op.

The MSBuild task offers several advantages over the Source Generator:

Requirements and intended audience

Refitter is a tool for generating a C# REST API Client using the Refit library. Refitter can generate the Refit interface and contracts from OpenAPI specifications. Refitter could format the generated Refit interface to be managed by Apizr (v6+) and generate some registration helpers too.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-20. Source: https://github.com/christianhelle/refitter/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-11-03. Saved release: 2.3.0 · 2026-09-28. These dates do not guarantee ongoing maintenance.

Technologies
C#
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-06. This does not test every feature.

Browse related categories