Skip to content

kunal768/bitespeed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Linking multiple contact informations to the same person using primary and secondary contacts

To Build

go build -o bitespeed

To Run

./bitespeed

Example Request

{
	"email": "[email protected]",
	"phoneNumber": "898991"
}

Example Response

{
    "primaryContatctId": 46,
    "emails": [
        "[email protected]"
    ],
    "phoneNumbers": [
        "898991"
    ],
    "secondaryContactIds": []
}

Example Request

{
	"email": "[email protected]",
	"phoneNumber": "898991"
}

Example Response

{
    "primaryContatctId": 51,
    "emails": [
        "[email protected]",
        "[email protected]"
    ],
    "phoneNumbers": [
        "898991",
        "898991"
    ],
    "secondaryContactIds": [
        52
    ]
}

Example Request

{
	"email": "[email protected]",
	"phoneNumber": "123456"
}

Example Response

{
    "primaryContatctId": 52,
    "emails": [
        "[email protected]",
        "[email protected]"
    ],
    "phoneNumbers": [
        "898991",
        "123456"
    ],
    "secondaryContactIds": [
        52,
        53
    ]
}

Example Request

{
	"phoneNumber": "123456"
}

Example Response

{
    "primaryContatctId": 53,
    "emails": [
        "[email protected]"
    ],
    "phoneNumbers": [
        "123456"
    ],
    "secondaryContactIds": [
        53
    ]
}

Example Request

{
	"email": "[email protected]"
}

Example Response

{
    "primaryContatctId": 51,
    "emails": [
        "[email protected]",
        "[email protected]"
    ],
    "phoneNumbers": [
        "898991",
        "898991"
    ],
    "secondaryContactIds": [
        52
    ]
}

About

API - Linking multiple contact informations to the same person using primary and secondary contacts

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published