-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Description
Suave web applications can be used with AspNetCore but native Suave WebSockets are not available and this breaks web part delivering Swagger UI.
Workaround
Swagger UI can be served as static files:
let swaggerFileOptions =
StaticFileOptions(
FileProvider = new PhysicalFileProvider(Path.Combine(Directory.GetCurrentDirectory(), @"swagger")),
RequestPath = PathString("/swagger/v3/ui"))
...
appBuilder
.UseStaticFiles(swaggerFileOptions)
.UseSuave(suaveApp)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels