Skip to content

Instantly share code, notes, and snippets.

@ccamel
Created May 9, 2018 09:29
Show Gist options
  • Save ccamel/d90cadab11aec3c85b4f5bc93a94c418 to your computer and use it in GitHub Desktop.
Save ccamel/d90cadab11aec3c85b4f5bc93a94c418 to your computer and use it in GitHub Desktop.
PlantUML - Sequence Diagram samples (with a nice rendering)
@startuml
' styles
skinparam handwritten true
skinparam monochrome false
skinparam packageStyle rect
skinparam defaultFontName FG Virgil
skinparam shadowing false
hide footbox
'
title Hello World Sequence Diagram
actor "Actor"
participant "service-1"
== Happy path ==
Actor -> "service-1": print("Hello world!")
activate "service-1" #DarkSalmon
Actor <-- "service-1" : ok
deactivate "service-1"
== Failure ==
Actor -> "service-1": print("Hello world!")
activate "service-1" #DarkSalmon
Actor <-- "service-1" : ko
deactivate "service-1"
@enduml
@ccamel
Copy link
Author

ccamel commented Oct 30, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment