Author Topic: Create diagram using Pro-Cloud Rest-API  (Read 5505 times)

ea0921

  • EA User
  • **
  • Posts: 82
  • Karma: +0/-1
    • View Profile
Create diagram using Pro-Cloud Rest-API
« 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

BobM

  • EA User
  • **
  • Posts: 128
  • Karma: +8/-0
    • View Profile
Re: Create diagram using Pro-Cloud Rest-API
« Reply #1 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.

ea0522

  • EA User
  • **
  • Posts: 81
  • Karma: +3/-0
    • View Profile
Re: Create diagram using Pro-Cloud Rest-API
« Reply #2 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.

ea0921

  • EA User
  • **
  • Posts: 82
  • Karma: +0/-1
    • View Profile
Re: Create diagram using Pro-Cloud Rest-API
« Reply #3 on: May 03, 2023, 08:45:46 pm »
I want to create diagram using elements, using Pro-Cloud Server Rest-API

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 12921
  • Karma: +537/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Create diagram using Pro-Cloud Rest-API
« Reply #4 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