add methods for getting swagger doc
Added JSDoc for the getSwagger* methods