Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ea0522 on May 30, 2024, 09:13:15 pm

Title: How to use Fetch() for JSON REST API calls?
Post by: ea0522 on May 30, 2024, 09:13:15 pm
Hai, I'm trying to import data in Enterprise Architect using a REST API call.
The REST API returns a nicely formatted JSON string.
In another javascript, I've managed to parse a valid JSON string.
However, when I try to use Fetch() to get the information from an URL, I get an error: "fetch is not defined".
Anyone has an example javascript I can adapt to test the fetch function?
Thanks.