Skip to content

Commit d2cb045

Browse files
Krzysztof MarciniakKrzysztof Marciniak
authored andcommitted
readme update
1 parent 6472c32 commit d2cb045

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,16 @@ By changing the first line only, a single request fetches all the data. The navi
252252
253253
app = client.v3.apps.get("app-guid", include="space.organization")
254254
255+
.. code-block:: python
256+
257+
fields = {
258+
"space": ["guid,name,relationships.organization"],
259+
"space.organization": ["guid","name"]
260+
}
261+
services_instances = client.v3.service_instances.list(fields=fields)
262+
263+
Relationship object generated by `fields` will contain only attributes returned by the API (eg. name, guid). Please note relationship needs to be explicitly requested, otherwise it will be ignored and child object not created.
264+
255265
Available managers on API V3 are:
256266

257267
- ``apps``

0 commit comments

Comments
 (0)