Skip to content

Commit bb31e83

Browse files
author
Rémy HUBSCHER
committed
Add server_info documentation.
1 parent 99e1e61 commit bb31e83

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,20 @@ at creation time, so that this value will be used by default.
8282
client = Client(bucket="payments", collection="receipts", auth=auth)
8383
8484
85+
Getting server information
86+
--------------------------
87+
88+
You can use the ``server_info`` methods to get the server information::
89+
90+
.. code-block:: python
91+
92+
from kinto_client import Client
93+
94+
client = Client(server_url='http://localhost:8888/v1')
95+
infos = client.server_info()
96+
assert 'schema' in infos['capabilities'], "Server doesn't supports schema validation."
97+
98+
8599
Handling buckets
86100
----------------
87101

0 commit comments

Comments
 (0)