diff --git a/codepost/models/abstract/api_resource.py b/codepost/models/abstract/api_resource.py index 9dd39b3..9a82ae4 100644 --- a/codepost/models/abstract/api_resource.py +++ b/codepost/models/abstract/api_resource.py @@ -289,8 +289,7 @@ def instance_endpoint_by_id(self, id=None): pass # CASE 2: The class end point has not formatting parameter - # NOTE: Trailing slash important (API bug) - return urljoin(self.class_endpoint, "{}/".format(_id)) + return urljoin(self.class_endpoint, "{}".format(_id)) @property def instance_endpoint(self): diff --git a/codepost/util/config.py b/codepost/util/config.py index 9e417d3..734679f 100644 --- a/codepost/util/config.py +++ b/codepost/util/config.py @@ -71,7 +71,7 @@ _LOG_SCOPE = "{}".format(__name__) SETTINGS_URL = "https://codepost.io/settings" -BASE_URL = "https://api.codepost.io/" +BASE_URL = "https://api.codepost.io" DEFAULT_API_KEY_ENV = "CP_API_KEY" DEFAULT_CONFIG_PATHS = [ "codepost-config.yaml", diff --git a/codepost/version.py b/codepost/version.py index 5c781c8..6a3ae10 100644 --- a/codepost/version.py +++ b/codepost/version.py @@ -1,2 +1,2 @@ # Version number -__version__ = "0.2.29" +__version__ = "0.3.1"