Swagger to PlantUML
This package allows to create a UML diagram that represents the structure of the API.
It supports both Swagger 2.0 schema and OpenAPI 3.0 Schema
Usage
const swaggerToPlantUML = // ...const pumlCode = await
Then you can use some library like node-plantuml to create the actual diagram.
const fs = const puml = // ...const gen = pumlgenout
swaggerToPlantUML(api)
It creates the PlantUML definition for
-
api(required)
string
The file path or URL of your Swagger API.
-
Return value
Promise<string>
PlantUML diagram definition text.