Versions Compared

Key

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


 

A data domain (domain) can cross-reference another in its definition creating a relationship between two or more domains. In the following diagram, the "Student" domain makes a cross-reference to the "Country" domain:

...

NOTE: PUTing a domain is denied if any data is POSTed to the domain:version.

UUIDs Instead of Domain/MDR Paths

While not as human-friendly, UUIDs can be used to be more lookup-friendly to the web service. Since YOUnite uses UUIDs for lookups in the underlying store, UUIDs can be considered if there are performance concerns (for example, for domains that are frequently referenced) but it has not been quantified how much performance is actually gained by using them.

UUID for a domain/s properties is returned with the following:

GET /domains/<domain-name>/properties
Code Block
{
	"properties": [{
			.
		"uuid": "bab4b589-be75-4e7c-93c8-c89e037d307d",
			.
			.
		"propertyName": "capital",
			.
			.
		}, {
			.
		"uuid": "7388d88b-d2b8-4585-a08f-ab373c1b0043",
			.
			.
		"propertyName": "capital.city",
			.
			.
		}, {
  			.
			.
			.
	}]
}

To get the UUIDs for a MDR's properties use:

    GET /mdr/<domain-name>/<display-value>?refs=true

For example, to post a "student" MDR with a reference to a "country" MDR using an UUID:

    GET /mdr/country/CAN?refs=true

...

.

...

    POST /mdr/students

...