swagger ui is not showing anything in webapi and Structuremap is blocking
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019
07:56 AM
02-19-2019
07:56 AM
swagger ui is not showing anything in webapi and Structuremap is blocking
Hi Team,
I'm using structuremap for our webapi project. I'm facing exactly same issue as mentioned here.
However, The swagger UI is coming up if i comment below line in StructuremapWebApi.cs
GlobalConfiguration.Configuration.DependencyResolver = new StructureMapWebApiDependencyResolver(container);
But, The DI will not work if i comment above line. Is there any solution for this.
Labels:
- Labels:
-
Swagger Editor
-
Swagger UI
1 REPLY 1
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2019
08:30 AM
02-19-2019
08:30 AM
Unfortunately, I'm not sure we can help with that.
Swagger UI, as a set of static html/css/js files just 'works'. Any other product you use it within should just host it as the static files they are, while injecting the configuration in one of the available methods. We don't have any specific knowledge about structuremap to offer help with it directly.
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
