I have a reference field that allows several schemas. Is there a way of knowing what kind of schemas these references are? When I request the content I only get the alphanumeric id value, and wouldn’t know how to do the query URL since it needs the schema name.
Hi Sebastian,
Hope you are doing well.
Will be possible to get the Schema Name along with Reference Field id.
Eg:
“iv”: [
{
“multichoiceMultMedia”: [
{
“id”:“26a9ab85-e42f-4dc4-bb91-a5a0481223e4”,
“schema”:“IntroA”
},
{
“id”:“6a3471b2-b239-4f73-8475-b32dbf898356”,
“schema”:“introB”
}
]
}
Whi makes dev life easy to call the relevant API based on the schema.
If there is no such option then will hit endpoint.
However, In my case I don’t have clarity on what schema is going to be part of the Reference. If I know the schema name I can call related schema endpoint to get the information/content related to Reference.
In you approach i need to call api/content/{app-Name}/?ids=d3dca83e-dcef-4efd-a6df-bad193e726d0,66ef4771-13f9-44a9-898d-462a678566f6
based on the response I need a group-by schema name to hit the relevant schema endpoint.
I want to avoid the multiple calls to know the schema of the reference filed.