Created
December 9, 2016 22:29
-
-
Save rasmuschristensen/9b35460b4b483dbde9ccc8771bec53b9 to your computer and use it in GitHub Desktop.
A Powershell to autogenerate C# proxies from a swagger endpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$swaggerEndpoint = "http://localhost:9000/swagger/docs/v1" | |
$outputDirectory = "targetfolder" | |
$autoRestRelativePath = "..\..\packages\autorest.0.17.3\tools\AutoRest.exe" | |
& $autoRestRelativePath -Input $swaggerEndpoint -Namespace "com.myproject.Client.Proxies.targetfolder" -OutputDirectory $outputDirectory -CodeGenerator CSharp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment