Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradygaster/ab914e2b07b0fc984216776f750644de to your computer and use it in GitHub Desktop.
Save bradygaster/ab914e2b07b0fc984216776f750644de to your computer and use it in GitHub Desktop.
az apim api import --specification-format Swagger
--subscription-required false
--path "recipes/v1"
--resource-group RecipeApiGroup
--service-name recipe-apis
--api-id RecipeApi
--service-url "https://recipe-api-host.azurewebsites.net"
--specification-path "/home/runner/work/Recipe-Api/Recipe-Api/RecipeApi/bin/Release/net5.0/swagger.json"
dotnet swagger tofile --output [output] [startupassembly] [swaggerdoc]
dotnet swagger tofile --output "/home/runner/work/Recipe-Api/Recipe-Api/RecipeApi/bin/Release/net5.0/win-x86/swagger.json" "/home/runner/work/Recipe-Api/Recipe-Api/RecipeApi/bin/Release/net5.0/win-x86/RecipeApi.dll" v1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment