-
Notifications
You must be signed in to change notification settings - Fork 3
Mailbox API
GET | `/{id}` | Pull a message from the mailbox for a specific peer id (note that this call removes the message). |
GET | `/poll/{id}` | Long polling version of the previous call. The call will be kept open for at maximum 30 seconds. |
GET | `/all/{id}` | Get all message from the mailbox for a specific peer id |
Pull a message from the mailbox for a specific peer id (note that this call removes the message).
Parameter:
id required - defines the id of the peer
Respond:
200 message pulled (in body)
204 there is no message for this peer
Long polling version of the previous call. The call will be kept open for at maximum 30 seconds.
Parameter:
id required - defines the id of the peer
Respond:
200 message pulled (in body)
204 there is no message for this peer
408 request timed out
Get all message from the mailbox for a specific peer id
Respond:
200 messages successfully pulled (in body)
Copyright (c) 2014 Technische Universitat Wien (TUW), Distributed Systems Group E184 (http://dsg.tuwien.ac.at)
This work was partially supported by the EU FP7 FET SmartSociety (http://www.smart-society-project.eu/).
SmartCom
Communication as a Service