Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: ea0522 on June 04, 2024, 08:50:17 pm

Title: How to import model information into repository using REST API calls?
Post by: ea0522 on June 04, 2024, 08:50:17 pm
From several sources, I have information on models used in or by that source.
This model information (like elements, connectors, meta-information) is available via one or more REST APIs.
One example of this is PowerBI which opens its model information via the Power BI Scanner REST API (see e.g. https://powerbi.microsoft.com/nl-nl/blog/announcing-new-admin-apis-and-service-principal-authentication-to-make-for-better-tenant-metadata-scanning/ (https://powerbi.microsoft.com/nl-nl/blog/announcing-new-admin-apis-and-service-principal-authentication-to-make-for-better-tenant-metadata-scanning/)).

I managed to find a blog which explained on how to model and generate REST APIs from an EA repository.
I cannot find however a way to use a REST API to import information into an EA repository.

Any suggestions on how to import elements and connectors directly into EA from a REST API?
TIA
Title: Re: How to import model information into repository using REST API calls?
Post by: reichel2 on January 06, 2025, 03:34:00 pm
Have you explored using ETL (Extract, Transform, Load) tools? They can often connect to REST APIs and help you import data into EA repositories more seamlessly.
Title: Re: How to import model information into repository using REST API calls?
Post by: Geert Bellekens on January 06, 2025, 06:43:05 pm
There are basically two API's you can use:

- Client side API
- Server side API (OSCL)

The client side API is pretty complete and can be used to automate most things in EA.
The server side API is pretty limited, but can be used for import/export purposes.

Geert