$TOKEN_B is the token that was generated during the handshake and is used to authenticate the user on the Origin node (the one who shares the data) by the Destination node. |
Used variables
# Base url for the federation api
$BASE_URL
# JWT of the user
$JWT
# Node id of the destination node
$NODE_ID
# Federation module id
$MODULE_ID
# Node B auth token
$TOKEN_B
Parameter name | Parameter value | Description |
---|---|---|
exposed |
1 |
Show exposed modules |
shared |
1 |
Show shared modules |
mapped |
1 |
Show module mappings |
Example request
curl -X GET "$BASE_URL/federation/nodes/$NODE_ID/modules/$MODULE_ID/records?lastSync=$AFTER_TIMESTAMP" \
-H "Authorization: Bearer $TOKEN_B";
Example response
{
"response": {
"filter": {
"moduleID": "132954639472525355",
"query": "",
"sort": "createdAt DESC",
"page": 1,
"perPage": 20,
"count": 97,
"deleted": 0
},
"set": [
{
"recordID": "$COMPOSE_RECORD_ID",
"moduleID": "$FEDERATION_MODULE_ID",
"values": [
{
"name": "name",
"value": "John"
},
{
"name": "surname",
"value": "Doe"
}
],
"createdAt": "2020-09-08T19:56:14Z",
"updatedAt": "2020-09-09T18:05:33Z"
}
]
}
}