Swaggeratr icon indicating copy to clipboard operation
Swaggeratr copied to clipboard

generate one swagger document for all the end points

Open Ishpal opened this issue 9 years ago • 2 comments

How can I generate one swagger document for all the end points, so that all the services and models are combined into one list?

Ishpal avatar Jan 06 '16 19:01 Ishpal

Hi Ishpal, the code looks at the URL that calls it, and generates that service's swagger. I forked the code because I had to work with some wcf services that didn't implement an interface, so I had to use reflection. You may be able to use that code to discover the services from the root, which you can pass in the URL, similar to how it does with the service names. Maybe add something like "*" to the root.

github5775 avatar Jan 06 '16 21:01 github5775

Ok, was wondering if it was already implemented.

Will make the desired changes.

thanks, Ishpal On Jan 6, 2016 4:46 PM, "github5775" [email protected] wrote:

Hi Ishpal, the code looks at the URL that calls it, and generates that service's swagger. I forked the code because I had to work with some wcf services that didn't implement an interface, so I had to use reflection. You may be able to use that code to discover the services from the root, which you can pass in the URL, similar to how it does with the service names. Maybe add something like "*" to the root.

— Reply to this email directly or view it on GitHub https://github.com/superstator/Swaggeratr/issues/71#issuecomment-169472903 .

Ishpal avatar Jan 06 '16 21:01 Ishpal