Skip to main content



      Home
Home » Eclipse Projects » Sirius » Leverage sirius with javascript
Leverage sirius with javascript [message #1801324] Wed, 16 January 2019 13:42 Go to next message
Eclipse UserFriend
Hi all,

Is it possible to leverage sirius with javascript?
Re: Leverage sirius with javascript [message #1801343 is a reply to message #1801324] Thu, 17 January 2019 04:24 Go to previous message
Eclipse UserFriend
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
Previous Topic:Ordering of elements in model vs. aird files matters?
Next Topic:Material for using two or more metamodels in one diagram
Goto Forum:
  


Current Time: Tue Apr 01 22:47:39 EDT 2025

Powered by FUDForum. Page generated in 0.06822 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top