I have uml diagram in Mermaid syntax as simle as this:
classDiagram class Animal { +String name +int age +makeSound() } class Dog { +String breed +bark() } class Cat { +String color +meow() } Animal <|-- Dog Animal <|-- Cat
Is there any way to send it in body request to the API so it was visible in Confluence page as diagram not as plain text?
I send request to
me.atlassian.net/wiki/api/v2/pages
with body
Hello @Beata Malczewska,
I realize you want to send the Mermaid syntax via API, but I did want to call out that our Confluence native diagramming app, GLIFFY, does support building diagrams from AI: Mermaid-integration.
You can bypass the API build and plug that syntax directly into the Mermaid builder then save the diagram for all Confluence users to see. You can even update AI built diagrams with Mermaid syntax if that is your preference!
Feel free to trial it here and reach out if you have questions > https://www.gliffy.com/free-trial
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Beata Malczewska ,
You'd need to contact the plugin vendor to ask them how they store the Mermaid diagram. It is likely not directly stored as text on the page.
You'd hope they offer an API for sending Mermaid from external systems.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.