I have the following simple database in Bubble:
“seriesId | text | country”
My developers created an external application and asked me if it is possible to handover the Bubble data in a precise JSON format. I already changed the structure of the actual database so it only contains relevant fields. The external application will use the GET call from the data API every X hours.
When I use the data API to receive the data I receive this:
“response”: {
“results”: [
{
“country”: “XX”,
“text”: “XX”,
“seriesId”: X,
“_id”: “1511167989416x123378709674065920”
},
Is there any way I can format this as (change the array names and hide the ïd):
When I use the data API to receive the data I receive this
You would like to change the format of JSON that is returned from your app in Bubble via Data API? I don’t believe this is possible, the documentation is here. That’s what I meant by “Data API is even more predefined” in comparison to workflow APIs.
I couldn’t find any other format options, maybe something with API workflows?
As I explained, from Workflow API calls (described here) you get the structure with “status” and “response” parts, and I don’t know if you can change it - I believe not.