swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.03k stars 6.03k forks source link

Add new C# Client Generator that uses Flurl to make the HttpClient calls? #10043

Open MikeGriffinReborn opened 4 years ago

MikeGriffinReborn commented 4 years ago
Description

I want to add a new option for those generating C# Client code that uses Flurl as the HttpRequest mechanism. There is one here that uses what is called "RestSharp" (https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/main/resources/csharp-dotnet2) and I was thinking all I need to to is clone the repo, add a new folder called "csharp-flurl" and start with and change over the RestSharp stuff to use Flurl in my folder?

I assume somewhere I need to let the system know there is a new client for C# called Flurl? I am not adding a whole new language, just a different type of client generation.

Is there a link on how to do this? I'm familiar with mustache so as long as I can download and get my C# client generation to show as a option and it executes my code I imagine I could get this working pretty quickly.

danleonard-nj commented 2 years ago

@MikeGriffinReborn still have plans to do this? I'd be happy to work with you on it, I'm sure there are lots of people that want Flurl as an option (myself, first and foremost)

adamfisher commented 9 months ago

Any movement on this? I would be interested in this as well.