Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Latest commit

 

History

History
82 lines (60 loc) · 3.16 KB

API.md

File metadata and controls

82 lines (60 loc) · 3.16 KB

Functions

getRelations(asyncApiDocs, [options])Promise.<DiscoveredRelations>

Validates and analyzes a list of AsyncAPI documents and get applications described by those files

getMermaidFlowchart(metrics)String

Generates mermaid flowchart from default output syntax

getPlantUMLDiagram(metrics)String

Generates plantUML class diagram from default output syntax

getReactFlowData(metrics)Array

Generates reactFlow nodes data from default output syntax

validate(asyncApiDocs)Promise.<Array>

Validate and parse given array of AsyncAPI documents.

getRelations(asyncApiDocs, [options]) ⇒ Promise.<DiscoveredRelations>

Validates and analyzes a list of AsyncAPI documents and get applications described by those files

Kind: global function
Returns: Promise.<DiscoveredRelations> - Relations between documents

Param Type Description
asyncApiDocs Array.<String> An array of stringified AsyncAPI documents
[options] Object
[options.syntax] 'default' | 'mermaid' | 'plantUML' | 'reactFlow' syntax in which the relation will be generated.

getMermaidFlowchart(metrics) ⇒ String

Generates mermaid flowchart from default output syntax

Kind: global function
Returns: String - Flowchart following mermaid syntax

Param Type Description
metrics Object Relations between AsyncAPI docs in default output syntax

getPlantUMLDiagram(metrics) ⇒ String

Generates plantUML class diagram from default output syntax

Kind: global function
Returns: String - class diagram following plantUML syntax

Param Type Description
metrics Object Relations between AsyncAPI docs in default output syntax

getReactFlowData(metrics) ⇒ Array

Generates reactFlow nodes data from default output syntax

Kind: global function
Returns: Array - reactFlow nodes data

Param Type Description
metrics Object Relations between AsyncAPI docs in default output syntax

validate(asyncApiDocs) ⇒ Promise.<Array>

Validate and parse given array of AsyncAPI documents.

Kind: global function
Returns: Promise.<Array> - parsed AsyncAPI documents

Param Type Description
asyncApiDocs Array unparsed AsyncAPI documents