Broke up RestClientGenerator so that custom generators for other languages can be created or the C# one could be modified for custom use cases.
This commit is contained in:
@ -37,7 +37,7 @@ namespace MontoyaTech.Rest.Net.Example
|
||||
new Route(HttpRequestMethod.Get, "/auth/", Json)
|
||||
);
|
||||
|
||||
string code = RestClientGenerator.GenerateCSharpClient(listener.Routes);
|
||||
string code = listener.GenerateCSharpClient();
|
||||
|
||||
Console.WriteLine(code);
|
||||
|
||||
|
Reference in New Issue
Block a user