diff --git a/pyrestcli/resources.py b/pyrestcli/resources.py index 9654ccc..40f43d3 100644 --- a/pyrestcli/resources.py +++ b/pyrestcli/resources.py @@ -41,7 +41,7 @@ def get_resource_endpoint(cls, resource_id): :param resource_id: Resource id :return: Relative path to the resource """ - return urljoin(cls.get_collection_endpoint(), str(resource_id)) if resource_id is not None else None + return urljoin(cls.get_collection_endpoint(), str(resource_id) + "/") if resource_id is not None else None @classmethod def get_collection_endpoint(cls):