Get References
info
All JSON array responses have been shortened for readability.
GET/<ApplicationID>/collections/<CollectionID>/references
Endpoint Requires Authentication
Example
https://api.weightron.cloud/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/references
Description
Returns an array of objects containing keys which target the given collection (foreign keys).
Returns
{
"timestamp": "2023-03-23T10:12:05.338Z",
"data": [
{
"_id": "641c1177ebc8b2f3c195b053",
"name": "Area",
"localCollection": "641c1177ebc8b2f3c195b037",
"localProperties": {
"_id": 1,
"area": 1
},
"foreignCollection": "641c1177ebc8b2f3c195b033",
"foreignProperties": [
{
"local": "area",
"foreign": "_id"
}
],
"displayProperty": "name",
"importProperty": "area",
"criteria": {
"block": {
"$eq": false
}
},
"createdAt": "2023-02-13T14:22:29.944Z",
"updatedAt": "2023-03-09T11:21:29.754Z",
"__v": 0
}
]
}