diff --git a/documentation/sequenceDiagramCreate.puml b/documentation/sequenceDiagramCreate.puml index 8e42451..91b4e27 100644 --- a/documentation/sequenceDiagramCreate.puml +++ b/documentation/sequenceDiagramCreate.puml @@ -5,14 +5,22 @@ 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: fetchTournament(Tournament) -Server-->Website: {status: success | failure} -' deactivate Server +Website->Server: fetchInfo(Tournament) +activate Server +Server-->Website: sendInfo(Tournament) +deactivate Server Website-->Admin: displayTournament(Tournament) -' deactivate Admin -' deactivate Website end +alt status = failure +Website-->Admin: displayError(error) +end +deactivate Admin +deactivate Website @enduml \ No newline at end of file