From 9184bd74d79e3326c97ef6e6de3dcc18dd433f15 Mon Sep 17 00:00:00 2001 From: Kristoffer Juelsen Date: Tue, 29 Mar 2022 15:33:42 +0200 Subject: [PATCH] Update Sequence Diagrams --- Sequence-Diagrams.md | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/Sequence-Diagrams.md b/Sequence-Diagrams.md index 3d202ff..ee4cfc4 100644 --- a/Sequence-Diagrams.md +++ b/Sequence-Diagrams.md @@ -1 +1,29 @@ -Renders of Sequence Diagrams will be added once finished \ No newline at end of file +Renders of Sequence Diagrams will be added once finished + +@startuml Create Tournament +title Create Tournament +Actor Admin #palegreen +participant Website +database Server #brown +hide footbox + +Admin->Website: createTournament(Tournament) +activate Admin +activate Website +Website->Server: sendInfo(Tournament) +activate Server +Server-->Website: {status: success | failure} +deactivate Server +alt status = success +Website->Server: fetchInfo(Tournament) +activate Server +Server-->Website: sendInfo(Tournament) +deactivate Server +Website-->Admin: displayTournament(Tournament) +end +alt status = failure +Website-->Admin: displayError(error) +end +deactivate Admin +deactivate Website +@enduml \ No newline at end of file