-
-
Save playupchris/1755753 to your computer and use it in GitHub Desktop.
notification format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(current_user = 5) | |
POST /conversations/:id/invitations | |
{ | |
":type": "application/vnd.playup.conversation.invitation+json", | |
"to": { | |
":self": "http://localhost:8080/users/999", | |
":type": "application/vnd.playup.friend+json", | |
":uid": "friend-999" | |
}, | |
"details": { | |
":type": "application/vnd.playup.textual.summary+json", | |
"message": "user generated message", | |
"title": "user generated title", | |
"subtitle": "user generated subtitle" | |
} | |
} | |
(current_user = 999) | |
GET /notifications | |
{ | |
":self": "http://localhost:8080/users/me/notifications", | |
":type": "application/vnd.playup.notifications+json", | |
":uid": "profile-43-notifications", | |
"total_count": 120, | |
"unread_count": 104, | |
"items": [ | |
{ | |
":self": "http://localhost:8080/notifications/2", | |
":type": "application/vnd.playup.notification+json", | |
":uid": "notifications-2", | |
"read": false, | |
"timestamp": "2012-02-06T04:34:45Z", | |
"subject": { | |
":type": "application/vnd.playup.conversation.invitation+json", | |
"from": { | |
":self": "http://localhost:8080/users/39", | |
":uid": "profile-39", | |
":type": "application/vnd.playup.fan+json", | |
"display_name": "foo", | |
"avatar": "http://graph.facebook.com/100003211882178/picture?type=square" | |
}, | |
"details": { | |
":type": "application/vnd.playup.textual.summary+json", | |
"message": "KenRumbles has invited you to Indianapolis vs New Orleans", | |
"title": "IND 4 - 36 NO", | |
"subtitle": "3RD 05:14" | |
}, | |
"conversation": { | |
":uid": "conversations-2", | |
":self": "http://localhost:8080/conversations/2", | |
":type": "application/vnd.playup.conversation+json" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment