HTTP POST /users
{
"id": "4", // cadun id
"name": "Chuck Norris",
"username": "chuck.norris",
"email": "[email protected]"
}
HTTP POST /friendships/:userId-:otherUserId
HTTP DELETE /friendships/:userId-:otherUserId
(WIP)
HTTP POST /users/:id/preferences
{
"follows": {
"section": {
"name": "Politica",
"url": "http://semantica.globo.com/G1/Politica"
}
}
}
(TODO)
HTTP POST /users/:id/events
[
{
"eventName": "read",
"object": {
"type": "Article",
"subject": "Politics",
"url": "http://www.globo.com/politics/2322345"
}
},
{
"eventName": "watched",
"object": {
"type": "Video",
"subject": "Sports",
"url": "http://www.globo.com/sports/video/123234"
}
},
{
"eventName": "commented",
"object": {
"type": "Article",
"subject": "Entertainment",
"url": "http://www.globo.com/foo/2333"
}
},
{
"eventName": "rated",
"object": {
"type": "CookingRecipe",
"url": "http://www.globo.com/foo/2333"
}
}
]
(WIP)
HTTP GET /users/supports/SoccerTeam?name=flamengo
(WIP)
HTTP GET /users/:id/friends/follows/section?name=Politica