Skip to content

Sequence Diagrams

Yunus Emre Özdemir edited this page Apr 20, 2024 · 26 revisions

Auth

Create Account

sequenceDiagram
  actor User
  participant AccountServer
  participant Database
  User->>AccountServer: createAccount(username, email, password)
  activate AccountServer
  activate Database
  alt success
    AccountServer->>Database: Credentials
    Database-->>AccountServer: Success
    AccountServer-->>User: <200, "Success">
  else username/email exists
    Database-->>AccountServer: <1062, ER_DUP_ENTRY>
    deactivate Database
    AccountServer-->>User: <409, "Conflict">
    deactivate AccountServer
  end
Loading

Login

sequenceDiagram
  actor User
  participant AuthServer
  participant Database
  User->>AuthServer: login(username, password)
  activate AuthServer
  AuthServer->>Database: Credentials
  activate Database
  alt success
    Database-->>AuthServer: <200, User Data>
    AuthServer->>AuthServer: Issue JWT
    AuthServer-->>User: <200, JWT>
  else failure
    Database-->>AuthServer: failure
    deactivate Database
    AuthServer-->>User: <401, "Unauthorized">
    deactivate AuthServer
  end
Loading

Wikidata

Browse

sequenceDiagram
  actor User
  participant WikidataClient
  participant Wikidata API
  User->>WikidataClient: browse(searchText)
  WikidataClient->>Wikidata API: searchText
  alt success
    Wikidata API-->>WikidataClient: <200, matchList[itemID]>
    WikidataClient-->>User: <200, matchList[itemID]>
  else failure
    Wikidata API-->>WikidataClient: <ERROR_CODE, ERROR_MESSAGE>
    WikidataClient-->>User: <ERROR_CODE, ERROR_MESSAGE>
  end 
Loading

View Architect Page

sequenceDiagram
  actor User
  participant WikidataClient
  participant Wikidata API
  User->>WikidataClient: browse(searchText)
  WikidataClient->>Wikidata API: searchText
  alt success
    Wikidata API-->>WikidataClient: matchList
    WikidataClient-->>User: matchList
  else failure
    Wikidata API-->>WikidataClient: error code
    WikidataClient-->>User: error code
  end 
Loading

View Style Page

sequenceDiagram
  actor User
  participant WikidataClient
  participant Wikidata API
  User->>WikidataClient: browse(searchText)
  WikidataClient->>Wikidata API: searchText
  alt success
    Wikidata API-->>WikidataClient: matchList
    WikidataClient-->>User: matchList
  else failure
    Wikidata API-->>WikidataClient: error code
    WikidataClient-->>User: error code
  end 
Loading

View Building Page

sequenceDiagram
  actor User
  participant WikidataClient
  participant Wikidata API
  User->>WikidataClient: browse(searchText)
  WikidataClient->>Wikidata API: searchText
  alt success
    Wikidata API-->>WikidataClient: matchList
    WikidataClient-->>User: matchList
  else failure
    Wikidata API-->>WikidataClient: error code
    WikidataClient-->>User: error code
  end 
Loading

Feed

View Feed

Browse

Post

Create Post

Delete Post

Comment

Like

Bookmark

Share

Report

Profile

View Profile

Update Profile

🏠 Home

👤 Team Members

Lab Reports

📅 451 Meetings

💻 451 Project

🔬 451 Research

✍️ 451 Reports

📋 Templates

📁 352 Archive

📅 Meetings
💻 Project
🔬 Research
Clone this wiki locally