Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

concept

FND edited this page Nov 14, 2014 · 2 revisions

NOTE: largely obsolete

GET /admin

GET /apps  -->  [{ ID, URI, name }]
POST /apps { ID, name }  -->  token # newly generated
GET /apps/<ID>  -->  { ID, name, token }
DELETE /apps/<ID>

GET /preferences  -->  200 # checkbox for each app
POST /preferences { ID=<0|1> }

POST /outbox { token, recipients, subject, body }  -->  202

    +-----+                  +--------+               +------+
    | app | ---------------> | Naveed | - - SMTP - -> | user |
    +-----+   POST /outbox   +--------+               +------+
                                 ^
                                 | POST /preferences
                                 |
                              +------+
                              | user |
                              +------+

note that the premise here is that it's each individual application's responsibility to decide when to send a notification, since that's not something we can define generically

however, it's up to Naveed whether a notification is forwarded to the respective users (usually based on their preferences) - that is, applications do not need to differentiate and should always send notifications for relevant events

Clone this wiki locally