support relative base paths for swagger_doc API

Support relative and absolute base paths for
`add_swagger_documentation`. If a relative path is specified it should
take the base URL from the request and join it with the specified
relative base path.