Skip to content

Instantly share code, notes, and snippets.

@rasmuschristensen
Created December 9, 2016 22:29
Show Gist options
  • Save rasmuschristensen/9b35460b4b483dbde9ccc8771bec53b9 to your computer and use it in GitHub Desktop.
Save rasmuschristensen/9b35460b4b483dbde9ccc8771bec53b9 to your computer and use it in GitHub Desktop.
A Powershell to autogenerate C# proxies from a swagger endpoint
$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