-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshow-list.puml
69 lines (51 loc) · 1.12 KB
/
show-list.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@startuml
skinparam {
backgroundColor transparent
Sequence {
Group {
BodyBackgroundColor #ffffff88
}
Box {
FontColor white
}
}
participant {
backgroundColor white
}
}
actor User as user
participant Dashboard as app
box Spotify #2FE58F
participant "API" as api
participant "App" as spotify
end box
group Provide List
user o-> app: Visit app
activate app
user <-- app: Request list
deactivate app
end
group Visit Dashboard
user o-> app: Provide list
activate app
user <- app: Request authentication
deactivate app
activate user
user -> api: Authenticate with Spotify
deactivate user
activate api
app <-- api: Redirect to app
deactivate api
activate app
user <-- app: Show list as albums with links to Spotify App
deactivate app
deactivate user
end
group Listen to album
user o-> app: Click album link
app -> spotify: Open link in Spotify App
activate spotify
user <-- spotify: Play album
deactivate spotify
end
@enduml