generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feat/webapp/fix-error-messages
- Loading branch information
Showing
12 changed files
with
174 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@startuml Game's life cycle | ||
title Game Sequence Diagram | ||
actor Client #darksalmon | ||
participant API #darksalmon | ||
database DB #salmon | ||
|
||
skinparam Style strictuml | ||
skinparam SequenceMessageAlignment center | ||
|
||
Client -> API : start game | ||
activate API #darksalmon | ||
API -> DB : store game info | ||
activate DB #salmon | ||
DB --> API : game info stored | ||
deactivate DB | ||
API --> Client : return game info | ||
deactivate API | ||
loop #PeachPuff Round | ||
Client -> API : start round | ||
activate API #darksalmon | ||
API -> DB : ask for question | ||
activate DB #salmon | ||
DB --> API : return question | ||
deactivate DB | ||
API --> Client : return question with all answers | ||
deactivate API | ||
Client -> API : send chosen answer | ||
activate API #darksalmon | ||
API -> API : check answer is correct | ||
API -> DB : update game info | ||
activate DB #salmon | ||
DB --> API : game info updated | ||
deactivate DB | ||
API --> Client : inform user if guessed right | ||
|
||
|
||
end loop One question | ||
|
||
API -> DB : [if last round] update ranking | ||
activate DB #salmon | ||
DB --> API : ranking updated | ||
deactivate DB | ||
API --> Client : inform user if guessed right | ||
deactivate API | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
@startuml login | ||
title Login Sequence Diagram | ||
actor Client #darksalmon | ||
participant API #darksalmon | ||
database DB #salmon | ||
skinparam Style strictuml | ||
skinparam SequenceMessageAlignment center | ||
|
||
Client -> API : enters credentials | ||
activate API #darksalmon | ||
API -> DB : check credentials correct | ||
alt #PeachPuff credentials correct | ||
activate DB #salmon | ||
DB --> API : returns result | ||
deactivate DB | ||
API -> API : generate jwt and refresh tokens | ||
API -> DB : save tokens | ||
activate DB #salmon | ||
DB --> API : saves tokens | ||
deactivate DB | ||
API --> Client : return jwt dto | ||
deactivate API | ||
else credentials incorrect | ||
activate DB #salmon | ||
DB --> API : returns error | ||
deactivate DB | ||
activate API #darksalmon | ||
API --> Client : return 403 error | ||
deactivate API | ||
end | ||
|
||
|
||
@enduml |
24 changes: 24 additions & 0 deletions
24
docs/diagrams/sequence/SequenceDiagramQuestionGeneration.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@startuml question generator | ||
title Question Generator Sequence Diagram | ||
participant QuestionGenerator #darksalmon | ||
participant WikiDataQS #darksalmon | ||
database DB #salmon | ||
skinparam Style strictuml | ||
skinparam SequenceMessageAlignment center | ||
|
||
loop #PeachPuff Generate question templates | ||
activate QuestionGenerator #darksalmon | ||
QuestionGenerator -> WikiDataQS : request query template | ||
activate WikiDataQS #darksalmon | ||
QuestionGenerator <-- WikiDataQS : returns query answer | ||
deactivate WikiDataQS | ||
QuestionGenerator -> QuestionGenerator : process query answer | ||
QuestionGenerator -> DB : store answers | ||
activate DB #salmon | ||
QuestionGenerator -> DB : store questions | ||
DB --> QuestionGenerator : info saved | ||
deactivate DB | ||
end loop | ||
|
||
deactivate QuestionGenerator | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@startuml sign up | ||
title Sign Up Sequence Diagram | ||
actor Client #darksalmon | ||
participant API #darksalmon | ||
database DB #salmon | ||
skinparam Style strictuml | ||
skinparam SequenceMessageAlignment center | ||
|
||
Client -> API : account details | ||
activate API #darksalmon | ||
API -> API : validate details | ||
API -> DB : check email is unused | ||
alt #PeachPuff email is unused | ||
activate DB #salmon | ||
DB --> API : email is unused | ||
deactivate DB | ||
|
||
API -> DB : register user | ||
activate DB #salmon | ||
DB --> API : user registered | ||
deactivate DB | ||
API --> Client : return confirmation | ||
deactivate API | ||
else email is used | ||
activate DB #salmon | ||
DB --> API : email is used | ||
deactivate DB | ||
activate API #darksalmon | ||
API --> Client : 400 error | ||
deactivate API | ||
end | ||
@enduml |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters