IRI path for relational data across multiple instances of API Platform #2179
Unanswered
CobraSphere-RN
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on multiple instances of API Platform. Consider the following backend apps, both powered by API Platform and UUID as the identifiers instead of integer.
Organization
.Tenant
.The example below shows the
Tenant
, on App2.The
"organization"
attribute above currently points to a temporaryOrganization
entity in App2, but we want to point to the one in App1.I am thinking of implementing
"organization"
as a string, and keeping the full URL prefix for an IRI identifier."organization": "https://api.app1.example.com/organizations/4f2fe292-a2d5-4b1d-8b7a-918c31923550",
I may have answered my own question, but is this this the right approach, maybe using a DataProvider for the
Tenant
entity to App2 to fetch data from App1?-- Raf
Beta Was this translation helpful? Give feedback.
All reactions