What is Refitter
mainRefitter is a tool that generates C# REST API clients (specifically Refit interfaces and their contracts) directly from OpenAPI specifications. It provides three ways to integrate into your workflow:
- CLI Tool: For manual or script-based generation.
- MSBuild Task: For integration into your build process.
- C# Source Generator: For real-time, compile-time generation within your IDE.
All three modes are driven by the same .refitter settings configuration.