<< back to blog

JSON definition for your yUML Diagrams

yuml

26 Jun, 2010

If you’re writing a client for yUML like an iPad or Android app, then you want to be able to load up the original DSL for a diagram. This was not possible before, but now is.

For example, take this image http://yuml.me/5f5ed221

yUML Diagram

To ge the underlying info about that image, you can now load this file here.

http://yuml.me/5f5ed221.json

{
digest: "5f5ed221"
customisations: "scruffy;"
mime: "image/png"
type: "usecase"
extension: "png"
file_only: false
dsl: "[Mobile User]-(Draw Diagrams{bg:green}), (Draw Diagrams)<(Edit Existing Diagram), (Draw Diagrams)>(View Gallery Items)"
}

The file contains the DSL text and a few other useful bits of information. This means that clients can create their own edit pages like the online one does.

Here’s a sneaky hint at why we’re doing this :)

You may also like...
JSON definition for your yUML Diagrams
Generate yUML Diagrams in 10 Lines of Ruby
yUML Loses Adverts and Gains Forum, Twitter, and New Pricing
Want to be involved with yUML?
Blowing Bubbles With Twitter (And Bursting Them!)
PDF Output With yUML, And Other Things...
yUML Direction Control and Scaling
yUML Diagrams Look Cool On GitHub
yUML Scruffy Hand Drawn Look
A Touch Of Polish for yUML

kick it on DotNetKicks.com
blog comments powered by Disqus