...
Code Block |
---|
{ "studentID": "XYZ-123", "name": "Juana Masa", "homeCountry": "/mdrsdrs/country:v1/MEX", "birthday": "946684800" } |
...
The cross-reference can be to an entire data record (e.g. all of the properties for Mexico
in the data record):
"homeCountry": "/mdrsdrs/country:v1/MEX",
Or for a specific property in the data record (e.g. just the country name):
"homeCountry": "/mdrsdrs/country:v1/MEX/name",
Defining a Cross-Reference in the modelSchema
...
When defining a reference, the domain
path to the reference is used. When POSTing data for the reference the MDR data record path is used. Some examples will help clarify:
...
Code Block |
---|
"homeCountry": "/mdrsdrs/country:v1/MEX" |
Reference a Property in a Data Record
...