REST API to get diagram source

Jonah Caplan
edited May 2020 in
Hi
It would be helpful to be able to retrieve the source xml file for diagrams to script export to formats other than svg. We are using the REST API with jinja for report generation instead of velocity, and the pictures created by jama are pixelated. Instead, if I pull the source for the diagram I could convert to something else with the drawio command line.

I tried my luck at modifying the url for the pic from jama/diagrams/name.png -> jama/diagrams/name.xml but no go.
Jonah Caplan
QNX

Comments

  • Ivan Havel
    edited October 2020
    Hi,
    I would like to express support to Jonah's request for API extension. I am using Python REST API to build parts of some model in JAMA and need to read the content of the draw.io diagrams as input to this process. I traced the way the graph editor loads the diagram xml source but rather decided to abandon this path. Hope you might give us access to the diagram xml source via the API.
    Thank you,