Skip to content

Commit dbf963e

Browse files
committed
doc: resource_endpoint docstring
1 parent 3d6e567 commit dbf963e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scim2_client/client.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ def check_resource_model(
170170
)
171171

172172
def resource_endpoint(self, resource_model: Optional[type[Resource]]) -> str:
173+
"""Find the :attr:`~scim2_models.ResourceType.endpoint` associated with a given :class:`~scim2_models.Resource`.
174+
175+
Internally, it looks if any :paramref:`resource_type <scim2_client.BaseSCIMClient.resource_models>`
176+
of the client matches the resource_model by comparing schemas.
177+
"""
173178
if resource_model is None:
174179
return "/"
175180

0 commit comments

Comments
 (0)