Skip to content

Instantly share code, notes, and snippets.

@yuka1984
Created April 15, 2019 01:25
Show Gist options
  • Save yuka1984/074806beeac0fb00103b346a17b96d02 to your computer and use it in GitHub Desktop.
Save yuka1984/074806beeac0fb00103b346a17b96d02 to your computer and use it in GitHub Desktop.
[SwaggerIgnore]
[FunctionName("Swagger")]
public static Task<HttpResponseMessage> Run(
[HttpTrigger(AuthorizationLevel.Function, "get", Route = "swagger/json")]
HttpRequestMessage req,
[SwashBuckleClient] ISwashBuckleClient swashBuckleClient)
{
return Task.FromResult(swashBuckleClient.CreateSwaggerDocumentResponse(req));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment