How to call REST API from custom widget

i've created a custom pluggable widget for gojs. my custom widget need to get data from api. i try add datasource property.   in datasource, i call workflow that call rest api and return output based on import mapping. i try with list view and my custom widget. with the same microflow listview can show correct output. but my custom widget has diferent output.  
0 answers