A Docker image that can be used to generate UML diagrams from Swagger definitions
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.travis.yml
Dockerfile
LICENSE
README.md
deploy.sh
put-confluence-attachment.sh
swagger2png.sh

README.md

docker-swagger-to-diagram

A Docker image that can be used to generate UML diagrams from Swagger definitions

Build Status

Run with:

docker run --rm -v $PWD:/data \
    ngeor/swagger-to-diagram swagger2png.sh \
    swagger-input.yml diagram-output.png

You can also publish the page to Confluence Cloud with a different script which is baked into the image:

docker run --rm -v $PWD:/data \
    ngeor/swagger-to-diagram put-confluence-attachement.sh \
    -u confuence-username:confluence-password \
    --filename path-to-file.png \
    --comment "comment for describing changes" \
    --domain confluence-cloud-domain-without-atlassian.net \
    --content-id "the id of the page to put the attachment in"