From fe04db1cb0d66295b58f2ecbf02e17416b7ead04 Mon Sep 17 00:00:00 2001 From: Mert Cengiz <118610270+MertCengiz@users.noreply.github.com> Date: Tue, 9 Apr 2024 23:38:46 +0300 Subject: [PATCH] Add files via upload --- Sequence Diagram - 1-2024-04-09-120041.mmd | 15 +++++++++++++++ Sequence Diagram -2-2024-04-09-123951.mmd | 21 +++++++++++++++++++++ Sequence Diagram -3-2024-04-09-130417.mmd | 18 ++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 Sequence Diagram - 1-2024-04-09-120041.mmd create mode 100644 Sequence Diagram -2-2024-04-09-123951.mmd create mode 100644 Sequence Diagram -3-2024-04-09-130417.mmd diff --git a/Sequence Diagram - 1-2024-04-09-120041.mmd b/Sequence Diagram - 1-2024-04-09-120041.mmd new file mode 100644 index 0000000..f400ff7 --- /dev/null +++ b/Sequence Diagram - 1-2024-04-09-120041.mmd @@ -0,0 +1,15 @@ +sequenceDiagram + actor Susanne + Susanne->>GuestUser: login(username, password) + activate GuestUser + GuestUser->>DataBase: verifyPassword(username, password) + activate DataBase + DataBase-->>GuestUser: + deactivate DataBase + alt status IS 200 + GuestUser-->>Susanne: token + else + GuestUser->>Susanne: <> + end + deactivate GuestUser + \ No newline at end of file diff --git a/Sequence Diagram -2-2024-04-09-123951.mmd b/Sequence Diagram -2-2024-04-09-123951.mmd new file mode 100644 index 0000000..dcea47c --- /dev/null +++ b/Sequence Diagram -2-2024-04-09-123951.mmd @@ -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: + deactivate DataBase + alt status2 IS 201 + GuestUser-->>Joseph: token + else + GuestUser-->>Joseph: <> + end + else + GuestUser-->>Joseph: <> + end + + deactivate GuestUser \ No newline at end of file diff --git a/Sequence Diagram -3-2024-04-09-130417.mmd b/Sequence Diagram -3-2024-04-09-130417.mmd new file mode 100644 index 0000000..50ca69d --- /dev/null +++ b/Sequence Diagram -3-2024-04-09-130417.mmd @@ -0,0 +1,18 @@ +sequenceDiagram + actor Samuel Osayi + Samuel Osayi->>User: <> + activate User + User->>Search: search(query) + activate Search + Search->>Wikidata API: queryCall(query) + activate Wikidata API + Wikidata API -->> Search: + deactivate Wikidata API + alt status IS 2xx + Search-->>User: WikidataResult + User-->>Samuel Osayi: <> + else + Search-->>Samuel Osayi: <> + deactivate Search + end + deactivate User \ No newline at end of file