Skip to main content Link Search Menu Expand Document (external link)

View All Banners

sequenceDiagram
    participant "Any User/System" as User
    participant System

    User->>System: 1. Request the list of all banners
    System->>System: 2. Fetch all banner records from the database
    System-->>User: 3. Return the complete list of banners

Create a New Banner

sequenceDiagram
    participant Admin
    participant System

    Admin->>System: 1. Submit details for a new banner (title, image URL, link)
    System->>System: 2. Create a new banner record in the database
    System-->>Admin: 3. Confirm creation and return the new banner's ID

Delete a Banner

sequenceDiagram
    participant Admin
    participant System

    Admin->>System: 1. Submit request to delete a banner by its ID
    System->>System: 2. Find and delete the specified banner from the database
    System-->>Admin: 3. Confirm deletion and return the deleted banner's ID