I have used the Swagger UI to display my REST webservices and hosted it on a server.
However this service of Swagger can only be accessed on a particular server. If
I figured out a way using https://github.com/springfox/springfox and https://github.com/RobWin/swagger2markup
Used Swagger 2 to implement documentation.