Fix Discovery Doc to use namespaced paths and actual rootUrl.