I am looking for a solution to this also. In my case I need to get all of the data in one API call for a record.
I think that the confusion above comes from using the word Post as a type name as POST has a meaning in API calls.
In Bubble we have Data Types and and each “record” in a Data Type is a Thing. I want to retrieve a Thing and any related Things. Currently I just get the Thing and the ID of the related Things.
I have a Data Type call Payments. So in my case I am getting this response when I send a GET request to my payments endpoint:
{
"response": {
"results": [
{
"PymntTotal - Sum of pymnts": 70,
"Internal receipt ID": 1,
"Owner": "1532713071148x172519846281290140",
"Payment method": "Bank Transfer",
"Payment received": false,
"Created By": "1518241101817x359411902410611500",
"Created Date": "2019-02-08T18:03:53.580Z",
"Modified Date": "2019-02-08T18:03:53.630Z",
"_id": "1541054615617x742816549761800200",
"_type": "custom.payments"
}
],
"cursor": 0,
"count": 1,
"remaining": 91
}
}
What I need is to expand the owner so that my response looks like this:
{
"response": {
"results": [
{
"PymntTotal - Sum of pymnts": 70,
"Internal receipt ID": 1,
"Owner": {
"name": "John Smith",
"email": "john@smith.com",
"_id": "1532713071148x172519846281290140"
},
"Payment method": "Bank Transfer",
"Payment received": false,
"Created By": "1518241101817x359411902410611500",
"Created Date": "2019-02-08T18:03:53.580Z",
"Modified Date": "2019-02-08T18:03:53.630Z",
"_id": "1541054615617x742816549761800200",
"_type": "custom.payments"
}
],
"cursor": 0,
"count": 1,
"remaining": 91
}
}