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
{
"spaceId": "11111",
"status": "current",
"title": "Title",
"parentId": "11111",
"body": {
"representation": "storage",
"value": "classDiagram\n class Animal {\n +String name\n +int age\n +makeSound()\n }\n\n class Dog {\n +breed: String\n +bark()\n }\n\n class Cat {\n +color: String\n +meow()\n }\n\n Animal <|-- Dog\n Animal <|-- Cat"
}
}
I have plugin installed, but see diagram as plain text on created page.