Mission: RELATIONS MASTER
Task: Retrieve Related Data With API
Hi,
what am I doing wrong in this API call in this mission?
curl --request GET \
--url 'https://api.backendless.com/79A5BE33-9B49-459A-FF51-A867D9C60D00/AFF3D37A-973F-4A81-BD7D-599793C9B316/data/Person/4A1A3DE5-A7CE-48F1-B4C1-7E0F92AE51AE?=&loadRelations=cityOfResidence' \
--header 'Accept: application/json'
I get back a single JSON that has also the city Object:
{
"created": 1604185969000,
"name": "string",
"___class": "Person",
"ownerId": null,
"updated": null,
"age": 0,
"objectId": "4A1A3DE5-A7CE-48F1-B4C1-7E0F92AE51AE",
"cityOfResidence": {
"created": 1602956396000,
"___class": "City",
"Population": 106800,
"ownerId": null,
"updated": null,
"District": "Yogyakarta",
"objectId": "1001",
"Name": "Depok"
}
}