grzegorznittner/StartupBidder — Issue #141: Implement notification in api and datastore
Author: johnarleyburns
Created: 2011-10-13 16:59:59+00:00
State: open

Datastore should have new entity, notification. This entity has:

notification_id: unique id of this notification
profile_id: the user which should be notified
url: direct link to the object being notified on, could be a comment or bid or listing
message: the plain-text message of the notification

The api should be read-only by the client (not saveable or updateable), and only accessible for the loggedin_profile (authenticated user):

/user/notification?id=

Also a list function should be provided so the user can see all their notifications, ordered by date descending

/user/notifications?id= (actually ?id= is superfluous here)

Also an acknowledge function should be provided to individual notifications so the user no longer sees them as "new" notifications:

/user/notification/acknowledge?id=

New summary field should be added to loggedin_profile:

num_new_notifications