grzegorznittner/StartupBidder — Issue #144: Better profile bid granularity in client
Author: johnarleyburns
Created: 2011-10-14 09:51:13+00:00
State: open

To support a user interface giving bid details, we have two major categories for a profile:

1. Bids for My Listings
2. Bids Placed by Me

For #1 we have bids where listing_owner_id=. For #2 we have bids where bid_owner_id=. That is, they are two opposite sides, one for the entrepreneur, one for the investor.

For #1 we return all bids for a given status matching the profile id:

/bids/created/listing_owner?id=
/bids/posted/listing_owner?id=
/bids/active/listing_owner?id=
/bids/accepted/listing_owner?id=
/bids/rejected/listing_owner?id=
/bids/withdrawn/listing_owner?id=
/bids/paid/listing_owner?id=

For #2 we return all bids for a given status that were placed by the profile id:

/bids/created/bid_owner?id=
/bids/posted/bid_owner?id=
/bids/active/bid_owner?id=
/bids/accepted/bid_owner?id=
/bids/rejected/bid_owner?id=
/bids/withdrawn/bid_owner?id=
/bids/paid/bid_owner?id=

Note that these are all read-only methods and available without authentication (publicly for any profile).