-
Notifications
You must be signed in to change notification settings - Fork 0
Sequence Diagrams
Ahmet Burkay KINIK edited this page Apr 30, 2024
·
16 revisions
sequenceDiagram
actor U as User
participant S as System
participant DB as Database
%register
U->>S: register(username, email, password)
S->>DB: Check if user exists
DB-->>S: User does not exist
S->>DB: Create new user
DB-->>S: User created
S->>U: Registration successful
sequenceDiagram
actor U as User
participant S as System
participant DB as Database
%login
U->>S: login(username, password)
S->>DB: Validate user credentials
DB-->>S: Credentials valid
S->>U: Login successful
sequenceDiagram
actor U as User
participant S as System
participant DB as Database
%logout
U->>S: logout()
S->>DB: Update user session
DB-->>S: Session updated
S->>U: Logout successful
sequenceDiagram
actor U as User
participant S as System
participant DB as Database
%edit_profile
U->>S: editProfile(username, email, password)
S->>DB: Retrieve user information
DB-->>S: User information retrieved
S->>DB: Update user information
DB-->>S: User information updated
S->>U: Profile edited successfully
sequenceDiagram
RegisteredUser->>+BookList: addBook(Book)
BookList->>+BookList: getBooks()
alt addBook successfull
BookList->>+RegisteredUser: success
else Book already exists
BookList->>+RegisteredUser: failure
end