-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7044974
commit fe04db1
Showing
3 changed files
with
54 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
sequenceDiagram | ||
actor Susanne | ||
Susanne->>GuestUser: login(username, password) | ||
activate GuestUser | ||
GuestUser->>DataBase: verifyPassword(username, password) | ||
activate DataBase | ||
DataBase-->>GuestUser: <status, token> | ||
deactivate DataBase | ||
alt status IS 200 | ||
GuestUser-->>Susanne: token | ||
else | ||
GuestUser->>Susanne: <<Display Login Error>> | ||
end | ||
deactivate GuestUser | ||
|
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,21 @@ | ||
sequenceDiagram | ||
actor Joseph | ||
Joseph->>GuestUser: register(username, email, password) | ||
activate GuestUser | ||
GuestUser->>DataBase: verifyCredentials(username, email, password) | ||
activate DataBase | ||
DataBase-->>GuestUser: status1 | ||
alt status1 IS 200 | ||
GuestUser->>DataBase: createUser(username, email, password) | ||
DataBase-->>GuestUser: <status2, token> | ||
deactivate DataBase | ||
alt status2 IS 201 | ||
GuestUser-->>Joseph: token | ||
else | ||
GuestUser-->>Joseph: <<Display Register Error>> | ||
end | ||
else | ||
GuestUser-->>Joseph: <<Display Register Error>> | ||
end | ||
|
||
deactivate GuestUser |
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,18 @@ | ||
sequenceDiagram | ||
actor Samuel Osayi | ||
Samuel Osayi->>User: <<Search For a Query>> | ||
activate User | ||
User->>Search: search(query) | ||
activate Search | ||
Search->>Wikidata API: queryCall(query) | ||
activate Wikidata API | ||
Wikidata API -->> Search: <status, Response Object> | ||
deactivate Wikidata API | ||
alt status IS 2xx | ||
Search-->>User: WikidataResult | ||
User-->>Samuel Osayi: <<Display Wikidata Result>> | ||
else | ||
Search-->>Samuel Osayi: <<Display Search Error>> | ||
deactivate Search | ||
end | ||
deactivate User |