Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MertCengiz authored Apr 9, 2024
1 parent 7044974 commit fe04db1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Sequence Diagram - 1-2024-04-09-120041.mmd
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

21 changes: 21 additions & 0 deletions Sequence Diagram -2-2024-04-09-123951.mmd
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
18 changes: 18 additions & 0 deletions Sequence Diagram -3-2024-04-09-130417.mmd
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

0 comments on commit fe04db1

Please sign in to comment.