Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Leverage sirius with javascript
Leverage sirius with javascript [message #1801324] Wed, 16 January 2019 18:42 Go to next message
Pratiksha Dalal is currently offline Pratiksha DalalFriend
Messages: 31
Registered: May 2018
Member
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 09:24 Go to previous message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

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 23 11:42:07 GMT 2024

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

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

Back to the top