|
Re: Leverage sirius with javascript [message #1801343 is a reply to message #1801324] |
Thu, 17 January 2019 09:24 |
|
Hi,
Thanks to its server components (plugins named org.eclipse.sirius.server.xxxxxx), Sirius can embed a Jetty-based server providing a HTTP API using GraphQL. Using some JavaScript, you can easily retrieve the list of projects, the available viewpoints and metamodels, the various resources and representations available and much more. You can see here an example showing what you can retrieve from our GraphQL API. You should start by installing the Sirius server feature (including its autostart feature) and then use the following environment variable to configure the port of the server:
-Dorg.eclipse.sirius.server.http.port=8080
When your Eclipse instance will start, it will start the server giving you access to the HTTP API on localhost:8080/api/graphql.
Kind regards,
Stéphane Bégaudeau
|
|
|
Powered by
FUDForum. Page generated in 0.03039 seconds