Swashbuckle ASP.NET Core get endpoints from another project

Viewed 39

I have installed Swashbuckle.AspNetCore package to add documentation to my APS.NET WebAPI project A. Project A has 8 endpoints needed to be documented. But swagger generated 3 extra endpoints from another project B. And in the result, I got 11 endpoints.

I know that it is happening because project A has dependencies on project B. But still, I cannot get rid of this dependency. Do you know any ways how to generate Swagger API documentation only for current project assembly? So that it doesn't take into consideration any other projects

Thank you in advance!

0 Answers
Related