Skip to content

Commit 19f7d13

Browse files
committed
doc: improve discovery documentation
1 parent d92b77d commit 19f7d13

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/tutorial.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ You can either provision those objects manually or automatically.
2828
Automatic provisioning
2929
~~~~~~~~~~~~~~~~~~~~~~
3030

31-
The easiest way is to let the client discover what :class:`~scim2_models.Schema` and :class:`~scim2_models.ResourceType` are available on the server by calling :meth:`~scim2_client.BaseSyncSCIMClient.discover`.
32-
It will dynamically generate models based on those schema, and make them available to use with :meth:`~scim2_client.SCIMClient.get_resource_model`.
31+
The easiest way is to let the client discover what configuration and resources are available on the server.
32+
The :meth:`~scim2_client.BaseSyncSCIMClient.discover` method looks for the server :class:`~scim2_models.ServiceProviderConfig`, :class:`~scim2_models.Schema` and :class:`~scim2_models.ResourceType` endpoints,
33+
and dynamically generate local Python models based on those schemas.
34+
They are then available to use with :meth:`~scim2_client.SCIMClient.get_resource_model`.
3335

3436
.. code-block:: python
3537
:caption: Dynamically discover models from the server

0 commit comments

Comments
 (0)