Get Reports
info
All JSON array responses have been shortened for readability.
GET/<ApplicationID>/collections/<CollectionID>/reports
Endpoint Requires Authentication
Example
https://api.weightron.cloud/641c1177ebc8b2f3c195b02c/collections/641c1177ebc8b2f3c195b033/reports
Description
Returns an array of objects containing reports linked to the given collection.
Returns
{
"timestamp": "2023-03-23T10:23:02.151Z",
"data": [
{
"_id": "641c2880ebc8b2f3c195b0e7",
"name": "Area Report",
"description": "Not sure why Area would have a report",
"targetCollections": ["641c1177ebc8b2f3c195b033"],
"jsx": "<div\r\n style={{\r\n width: \"297mm\",\r\n boxSizing: \"border-box\",\r\n fontFamily: \"sans-serif\",\r\n color: \"#333\"\r\n }}\r\n>\r\n <section style={{\r\n width: \"90%\",\r\n height: \"100%\",\r\n margin: \"auto\",\r\n overflowY: \"hidden\",\r\n display: \"flex\",\r\n flexDirection: \"column\",\r\n justifyContent: \"start\",\r\n alignItems: \"center\",\r\n padding: \"8px\",\r\n boxSizing: \"border-box\"\r\n }}>\r\n\r\n <h1>Test Report</h1>\r\n <p>{context.name}</p>\r\n <p>{context.notes}</p>\r\n\r\n </section>\r\n</div>",
"createdAt": "2023-03-23T10:22:56.524Z",
"updatedAt": "2023-03-23T10:22:56.524Z",
"__v": 0
}
]
}