Is it possible to get SwaggerUI/Swashbuckle to correctly list my application services. So far I have had no success. Is there any plans to integrate documentation tools in the future?
5 Answer(s)
-
0
Let me be a bit more specific. I was able to get swaggerUI into my project. However I am unable to get the methods from Application Services. It just lists AbpServiceProxies And ServiceProxies. I saw something in a previous post about using the DynamicApiControllerManager.GetAll() static method. But I cannot get it to work either.
-
0
Hi, maybe this will help you:
<a class="postlink" href="http://bitoftech.net/2014/08/25/asp-net-web-api-documentation-using-swagger/">http://bitoftech.net/2014/08/25/asp-net ... g-swagger/</a> <a class="postlink" href="http://www.strathweb.com/2014/04/opt-opt-asp-net-web-api-help-page/">http://www.strathweb.com/2014/04/opt-op ... help-page/</a>
I followed these manuals and the Swagger is fully functional for my Web API. It should work for you too.
-
0
Actually it works with my static Web API, as I wrote before. With dynamically created Web API, Swagger only generate following docs:
GET - /api/AbpServiceProxies POST - /api/AbpServiceProxies GET - /api/ServiceProxies POST - /api/ServiceProxies
I spent many time with configuration of Swagger, but I was unsuccessful with dynamic Web API. Maybe someone will figure it out with help of tutorials I posted before.