swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

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

Open MikeGriffinReborn opened this issue 6 years ago • 2 comments

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.

MikeGriffinReborn avatar Feb 17 '20 21:02 MikeGriffinReborn

@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)

danleonard-nj avatar May 08 '22 01:05 danleonard-nj

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

adamfisher avatar Jan 30 '24 20:01 adamfisher