Sequence Diagrams

This commit is contained in:
Kristoffer Juelsenn 2022-03-15 13:05:41 +01:00
parent 5fbec25543
commit 897b9138cf
3 changed files with 43 additions and 0 deletions

View File

View File

@ -0,0 +1,43 @@
@startuml Asura Tournament System
Actor User #lightblue
Actor Admin #palegreen
participant Website
database Server #brown
hide footbox
User->Website: viewTournament(Tournament)
activate User
activate Website
Website->Server: fetchTournament(Tournament)
activate Server
Server-->Website: {status: success | failure}
alt status = success
Website-->User: displayTournament(Tournament)
else status = failure
Website-->User: displayError(error)
deactivate User
end
Admin->Website: login(username, passwd)
activate Admin
Website->Server: Login Request
Server-->Website: {status: success | failure}
deactivate Server
alt status = success
Website-->Admin: "Login Successful"
end
Website->Admin: managementOptions(manage,edit,create,delete)
' Website-->Admin: Login successful
Admin->Website: createTournament(Tournament)
Website->Server: sendInfo(Tournament)
Server-->Website: {status: success | failure}
alt status = success
Website->Server: fetchTournament(Tournament)
Server-->Website: {status: success | failure}
' deactivate Server
Website-->Admin: displayTournament(Tournament)
Admin->Website: editTournament(Tournament)
' deactivate Admin
' deactivate Website
end
@enduml

View File