Author Topic: How to use Fetch() for JSON REST API calls?  (Read 1404 times)

ea0522

  • EA User
  • **
  • Posts: 134
  • Karma: +5/-0
    • View Profile
How to use Fetch() for JSON REST API calls?
« 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.