This application would start with features like "Friend", "Unfriend", "Block", "Receive Updates"
Ruby on Rails, Heroku, postgresql, REST API, Git
https://own-social-network.herokuapp.com/api/users/create_friend
{
"friends":
[
'andy@example.com',
'john@example.com'
]
}
{
"success": true
}
https://own-social-network.herokuapp.com/api/users/all_friends
{
"email": 'andy@example.com'
}
{
"success": true,
"friends": [
"john@example.com",
"andy_comman@example.com",
"comman_friend_andy_john@example.com",
"john@example.com"
],
"count": 4
}
https://own-social-network.herokuapp.com/api/users/common_friends
I am working for issue
{
"friends":
[
'andy@example.com',
'john@example.com'
]
}
{
"success": true,
"friends": [
"comman_friend_andy_john@example.com"
],
"count": 1
}
https://own-social-network.herokuapp.com/api/users/subscribe
{
"requestor": "lisa@example.com",
"target": "john@example.com"
}
{
"success": true
}
If requester will pass same user again and again then respose will be as below:
{
"success": false,
"message": "Subscription already exist!"
}
{
"requestor": "andy@example.com",
"target": "john@example.com"
}
{
"success": true
}
6. As a user, I need an API to retrieve all email addresses that can receive updates from an email address.
https://own-social-network.herokuapp.com/api/users/receive_update
{
"sender": "john@example.com",
"text": "Hello World! kate@example.com"
}
{
"sucess": true,
"receipients": [
"kate@example.com",
"lisa@example.com"
]
}