Include many-to-many¶
Many-to-many relationships can be represented with relationship links and optional include expansions.
Example¶
import httpx
response = httpx.get("http://localhost:8000/api/groups/1", params={"include": "customers"})
print(response.json())
Relationship link endpoint¶
Use relationship-link endpoints for linkage-only payloads, and include for full related resource payloads.
Included resource responses now also expose links.self on each included object.