You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A client requests an XML document where the elements in namespace urn:example:namespaces:ns1 must conform to XML schema http://example.com/schema/schema-1 and the elements in namespace urn:example:namespaces:ns2 must conform to XML schema http://example.com/schema/schema-2. The server answers that it can supply the document as requested.
The spec is more XML focused but I believe we can extend the same concept of "elements in namespace must conform to XML schema" to "relations must conform to schema". So this would allow us to do:
GET /projects?select=*,clients(*)Accept-Profile: <projects:api_v1 clients:api_v2>
Where projects comes from the api_v1 schema and clients comes from the api_v2 schema.
I'm still unclear on how to structure the absolute URLs for our case, but in theory it seems possible.
The resource embedding code is actually ready for handling different schemas, we just need code for mapping the header.
I don't see why we would want to allow resource embedding across different profiles. When I remember correctly, you tried hard to make sure that schemas accessed through profiles are isolated from each other - there's a few test cases for that, too, right?
Resource Embedding only supports embedding across a single schema.
According to the profile negotiation spec:
The spec is more XML focused but I believe we can extend the same concept of "elements in namespace must conform to XML schema" to "relations must conform to schema". So this would allow us to do:
Where
projects
comes from theapi_v1
schema andclients
comes from theapi_v2
schema.I'm still unclear on how to structure the absolute URLs for our case, but in theory it seems possible.
The resource embedding code is actually ready for handling different schemas, we just need code for mapping the header.
Related #2769
The text was updated successfully, but these errors were encountered: