basePathFromReferer parameter added to ApiDocumetationController, this adds ability to construct basePath using referer URL if basePath is empty.