From Swagger to Confluence UML diagrams

Nikolaos Georgiou
Nov 3, 2018 · 3 min read
docker run --rm -v $PWD:/data \
ngeor/swagger-to-diagram swagger2png.sh \
./src/main/swagger/swagger.yml diagram.png
step:
name: Generate UML diagram from Swagger file
image: ngeor/swagger-to-diagram
script:
- swagger2png.sh ./src/main/swagger/swagger.yml diagram.png
put-confluence-attachment.sh -u $USERNAME:$PASSWORD \
--domain acme \
--content-id $CONFLUENCE_CONTENT_ID \
--comment "Attaching UML diagram" \
--filename diagram.png

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade