Greetings to the wonderful Stack Overflow community!
I have been working diligently on incorporating Superset into my Angular application, but I have encountered a hurdle when attempting to retrieve the thumbnail image of a specific Superset dashboard. Currently, I am utilizing this API endpoint:
/api/v1/dashboard/{pk}/thumbnail/{digest}/
Upon passing the necessary parameters (pk, digest) and ensuring the "force" parameter is set to false, the response I am receiving is as follows: {"message":"OK Async"}.
Below is a snippet of the current code in my Angular service:
// Angular service code
this.thumbnailService.getThumbnail(pk, digest).subscribe(
(response) => {
// Presently, the response contains {"message":"OK Async"}.
// My aim is to acquire the actual image instead.
console.log('Response:', response);
},
(error) => {
console.error('Error fetching thumbnail:', error);
}
);
Your assistance or insights on this matter would be greatly appreciated - thank you in advance!
Although my objective is to directly retrieve the thumbnail image within the response rather than an asynchronous message, I have scoured through the documentation provided by Superset without finding a definitive solution. If anyone has prior experience with retrieving Superset dashboard thumbnail images within an Angular application and can offer guidance on obtaining the image directly, your help will be truly valued.