wise webhook
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
Imports System.IO
|
||||
Imports System.Net.Http
|
||||
Imports System.Reflection
|
||||
Imports System.Web.Http
|
||||
Imports System.Web.Http
|
||||
Imports System.Web.Http.Description
|
||||
Imports System.Web.Routing
|
||||
Imports Microsoft.Extensions.Options
|
||||
Imports Swashbuckle.Application
|
||||
Imports NSwag.AspNet.Owin
|
||||
Imports System.IO
|
||||
Imports System.Reflection
|
||||
|
||||
|
||||
|
||||
@@ -87,12 +86,13 @@ Public Class SwaggerConfig
|
||||
|
||||
Public Shared Sub Register(ByVal config As HttpConfiguration)
|
||||
|
||||
RouteTable.Routes.MapOwinPath("swagger", Function(app) As Owin.IAppBuilder
|
||||
RouteTable.Routes.MapOwinPath("swagger", Sub(app)
|
||||
|
||||
|
||||
|
||||
app.UseSwaggerUi(GetType(WebApiApplication).Assembly, Function(settings) As SwaggerUiSettings(Of NSwag.Generation.WebApi.WebApiOpenApiDocumentGeneratorSettings)
|
||||
settings.MiddlewareBasePath = "/swagger"
|
||||
settings.GeneratorSettings.OperationProcessors.Add(New WiseWebhookExampleProcessor())
|
||||
settings.GeneratorSettings.DefaultUrlTemplate = "api/{controller}/{id}"
|
||||
settings.DocumentTitle = descr
|
||||
settings.DocExpansion = "list"
|
||||
@@ -102,8 +102,7 @@ Public Class SwaggerConfig
|
||||
|
||||
|
||||
|
||||
Return app
|
||||
End Function)
|
||||
End Sub)
|
||||
|
||||
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user