Skip to content

Instantly share code, notes, and snippets.

@randomor
Last active November 13, 2020 20:08
Show Gist options
  • Save randomor/f3c1446499c40781075c31a2c3837755 to your computer and use it in GitHub Desktop.
Save randomor/f3c1446499c40781075c31a2c3837755 to your computer and use it in GitHub Desktop.

uml: sequence diagram

Here I will embed PlantUML markup to generate a sequence diagram.

I can include as many plantuml segments as I want in my Markdown, and the diagrams can be of any type supported by PlantUML.

@startuml
    skinparam backgroundColor #EEEBDC
    skinparam handwritten true
    actor Customer
    Customer -> "login()" : username & password
    "login()" -> Customer : session token
    activate "login()"
    Customer -> "placeOrder()" : session token, order info
    "placeOrder()" -> Customer : ok
    Customer -> "logout()"
    "logout()" -> Customer : ok
    deactivate "login()"
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment