diff --git a/src/Rest/RestConfiguration.php b/src/Rest/RestConfiguration.php
index <HASH>..<HASH> 100755
--- a/src/Rest/RestConfiguration.php
+++ b/src/Rest/RestConfiguration.php
@@ -96,7 +96,7 @@ class RestConfiguration
      */
     public function setRootEndpoint($endpoint)
     {
-        $this->rootEndpoint = $endpoint;
+        $this->rootEndpoint = sprintf('/%s', trim($endpoint, '/'));
         return $this;
     }
Fix issue to ensure leading / exists on endpoints