Skip to content

bansalpankaj89/connect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

connect

API to create new user

  POST http://connect-app.azurewebsites.net/api/connect/user

          The API should receive the following JSON request:
            {"name":"lisa","email":"lisa@connect.com"}

API to Fetch all User

  GET http://connect-app.azurewebsites.net/api/connect/users

—————————————————————————————————————————————

1.API to create a friend connection between two email addresses.

   http://connect-app.azurewebsites.net/api/connect/addfriend

            The API should receive the following JSON request:
            {
              friends:
                [
                  'andy@connect.com',
                  'john@connect.com'
                ]
            }
            The API should return the following JSON response on success:
            {
                 "success": "true",
                 "detail": "andy@connect.com and john@connect.com are friends now"
            }

2.API to retrieve the friends list for an email address.

   http://connect-app.azurewebsites.net/api/connect/user

              The API should receive the following JSON request:
              {
                email: 'andy@connect.com'
              }
              The API should return the following JSON response on success:
              {
                "success": true,
                "friends" :
                  [
                    'john@connect.com'
                  ],
                "count" : 1   
              }

3.API to retrieve the common friends list between two email addresses.

  http://connect-app.azurewebsites.net/api/connect/mutualfriend
       
              The API should receive the following JSON request:
              {
                friends:
                  [
                    'andy@connect.com',
                    'john@connect.com'
                  ]
              }
              The API should return the following JSON response on success:
              {
                "success": true,
                "friends" :
                  [
                    'common@connect.com'
                  ],
                "count" : 1   
              }

4.API to subscribe to updates from an email address

   http://connect-app.azurewebsites.net/api/connect/subscribe
   
              The API should receive the following JSON request:
              {
                "requestor": "lisa@connect.com",
                "target": "john@connect.com"
              }
              The API should return the following JSON response on success:
              {
                "success": true
              }

5.API to block updates from an email address.

   http://connect-app.azurewebsites.net/api/connect/block

              The API should receive the following JSON request:
              {
                "requestor": "andy@connect.com",
                "target": "john@connect.com"
              }
              The API should return the following JSON response on success:
              {
                "success": true
              }
  1. API to retrieve all email addresses that can receive updates from an email address.

    http://connect-app.azurewebsites.net/api/connect/recieveupdates
    
               The API should receive the following JSON request:
               {
                 "sender":  "john@connect.com",
                 "text": "Hello World! kate@connect.com"
               }
               The API should return the following JSON response on success:
               {
                 "success": true
                 "recipients":
                   [
                     "lisa@connect.com",
                     "kate@connect.com"
                   ]
               }
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published