wiki:UseCase04PrototypeImplementation

Version 2 (modified by 231035, 2 hours ago) ( diff )

--

UseCase04 - Saves a Listing

Initiating actor: Client

Description

A client browses listings and can save a listing into their favourites for quick access later. When the client clicks “Save” on a listing, the system verifies the client is logged in, verifies the listing exists, then stores the favourite record. The client can later view or remove saved listings.

Scenario

  1. Client clicks a listing from the lisiting page.

select 
l1_0.listing_id,
l1_0.owner_id,
l1_0.animal_id,
l1_0.description,
l1_0.price,l1_0.status,
l1_0.created_at
 from favorite_listings fl1_0
 join listings l1_0 on l1_0.listing_id=fl1_0.listing_id
 where fl1_0.client_id=? 
order by l1_0.created_at desc

  1. Client clicks "Save Listing" or the heart.

insert into favorite_listings (client_id,listing_id) values (?,?)
  1. The system saves the listing to favorites to the client.

Attachments (5)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.