Created
April 15, 2019 01:25
-
-
Save yuka1984/074806beeac0fb00103b346a17b96d02 to your computer and use it in GitHub Desktop.
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
[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