11 comments (11 comments)24 reactions (24 reactions)0 assignees (0 assignees)Java7,516 forks (7,516 forks)batch import
Enhancement: FeatureHacktoberfesthelp wanted
Repository metrics
- Stars
- 26,243 stars (26,243 stars)
- PR merge metrics
- Avg merge 9d 1h (Avg merge 9d 1h)123 merged PRs in 30d (123 merged PRs in 30d)
Description
Refit is probably the most lightweight solution for implementing .NET backend API calls. We would need to generate only the models and interfaces (with the attribute metadata).
Contributor guide
- Research direction
- Examine the existing C# generators (e.g., csharp netcore) in the openapi generator repository. Understand how Mustache templates are used to generate API interfaces and models. Then, study the Refit library's attributes and interface conventions. Implement a new generator module by copying an existing C# generator, modifying templates to emit Refit attributes (e.g., [Get], [Post], [Header]), and register the generator in the codegen configuration.
- Tech stack
- javacsharp
- Domain
- backendapitooling
- Issue type
- Feature
- Prerequisites
- JavaC#