Skip to content

Commit

Permalink
add trailing slash to resource endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Carrión committed Jul 15, 2019
1 parent ea550d3 commit 3c26cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrestcli/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3c26cfe

Please sign in to comment.