Sparx Systems Forum

Pro Cloud Server / Prolaborate / WebEA => PCS General Board => Topic started by: ea0921 on May 03, 2023, 07:41:42 pm

Title: Create diagram using Pro-Cloud Rest-API
Post by: ea0921 on May 03, 2023, 07:41:42 pm
Hello all,
 
I have Pro-Cloud Server installed in my machine and I want to create diagram using Rest-API, but I am not able to find a Rest-API t create diagrams.

I wanted to know, whether pro-cloud server provides Rest-API's to create diagram? Also, if yes, then what is the Rest-API to create diagram and is there ant specific kind to license required to create diagram using Pro-Cloud Rest-API.

Thanks
Title: Re: Create diagram using Pro-Cloud Rest-API
Post by: BobM on May 03, 2023, 08:25:44 pm
Hi,

Did you read up on the OSLC Architecture?
https://sparxsystems.com/enterprise_architect_user_guide/16.0/the_model_repository/oslc_am_top.html

It should be possible to create diagram elements including connectors (with source and target definitions)
https://sparxsystems.com/enterprise_architect_user_guide/16.0/the_model_repository/oslc_cfactory.html

I personally have no experience with Creation.
Title: Re: Create diagram using Pro-Cloud Rest-API
Post by: ea0522 on May 03, 2023, 08:33:48 pm
With EA it is possible to autogenerate and store images for diagrams as they are updated.
This is used by the WebEA functionality.
I have found the image data but have not figured out yet how to decode it to show the diagram itself.
Or do you want to generate diagrams from objects yourself? Then it should indeed suffice to get the element information from the OSLC interface.
Title: Re: Create diagram using Pro-Cloud Rest-API
Post by: ea0921 on May 03, 2023, 08:45:46 pm
I want to create diagram using elements, using Pro-Cloud Server Rest-API
Title: Re: Create diagram using Pro-Cloud Rest-API
Post by: Geert Bellekens on May 03, 2023, 08:56:16 pm
It looks like it only supports the creation of packages, elements and connectors, not diagrams.

Quote
Resources
     -  Packages
     -  Elements
     -  Connectors


Geert