DataSource Plugin - Display Several Data


I’m working on a datasource plugin and to get the data I have an external API who returns me JSON. So to display several data, I’m forced to make different requests to my API.

So to do different requests for each panel, I do the request “/api/dashboards/uid/” + My dashboard UID. And this request returns me in order the list of panels and i take them 1 by 1 to display the data. But when I move a panel this request becomes obsolete because the dashboard that I get is not the new dashboard. So the data displayed aren’t good.

So actually I’m trying to remake the save request for the dashboard automatically but this is gonna be long. Do you have a solution for saving the dashboard or maybe another way to display several data or do you know someone who can help me ?

Best Regards,

Update : If I can get the JSON Model of a dashboard I can make what I want.