Open tibitoth opened 6 years ago
Not sure if you were aware, but there is a project for generating client libraries for a swagger api.
I know this but maybe we can create a generator for refit too.
I haven't used it, but I found https://github.com/itofinity/swagger-csharp-refit which seems to produce interfaces and models from a swagger definition.
GitHubContribute to itofinity/swagger-csharp-refit development by creating an account on GitHub.
Some time ago I've created small dotnet tool to generate Refit interfaces from ASP.NET Core projects. It doesn't support swagger, and it doesn't generate DTO models (as the intention is to reuse same requests/responses), but maybe it would be useful to someone. https://github.com/Dreamescaper/GenerateAspNetCoreClient
GitHubDotNet tool to generate HTTP client classes from ASP.NET Core api controllers. - Dreamescaper/GenerateAspNetCoreClient
I have only recently discovered Refit and also created a small dotnet CLI tool to generate a Refit interface and contracts from OpenAPI (Swagger) specifications.
I hope it's useful to someone.
https://github.com/christianhelle/refitter
GitHubRefit Client SDK Generator for OpenAPI. Contribute to christianhelle/refitter development by creating an account on GitHub.
Hi, Is there any plan to support interface (and model) generation from swagger to refit?