Versions Compared

Key

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

...

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


Getting the UUIDs of

...

a Data Record's Properties

To get the UUIDs for a MDRdata record's properties use:

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

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

    GET /mdrdrs/country/CAN?refs=true


Code Block
{
	"name": {
		"value": "Canada",
		"_self": "9a472159-fc7c-4730-b8af-5007b26f890c"
	},
	"immigrationAddress": {
		"Street": {
			"value": "220 4th Avenue, SE, Room 210",
			"_self": "df879f43-cd93-4f5e-b77a-4ac64e0b5ba4"
		},
		"city": {... },
		"province-state": {},
		"postal-code": {}
	},
		.
		.
		.
}


Then, POST the student MDR  data record with the appropriate UUID for the cross-references

POST /mdrdrs/students

Code Block
{
	"firstname": "Jane",
	"lastname": "D'oe",
		.
		.
	"homeCountry": "9a472159-fc7c-4730-b8af-5007b26f890c",
	"immigrationAddress": "08c257b-74ac-406e-b56f-9cbbab87a57f"
}

...