Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When a student data records is are POSTed, the request body would include a reference to a specific country  data record:

Code Block
{
	"studentID": "XYZ-123",
	"name": "Juana Masa",
	"homeCountry": "/drs/country:v1/MEX",
	"birthday": "946684800"
}


When the student data record is referenced records are referenced (i.e. GET)  the response will insert the appropriate country information:

...

This creates a "chicken-or-the-egg" problem since the schema for one will exist before the other. To remedy this problem, one of the domains can be updated after both are created. For example:

...