Skip to content

mohitsethia/link-identity

Repository files navigation

Link Identity

Task Details

How to run this application

make run-docker

Endpoints:

  1. localhost:8000/, localhost:8000/health/check
    Response:{"status_code":200,"data":"success"}

  2. localhost:8000/identify
    Request Payload:

{
   "email": "test1@gmail.com",
   "phone": "+4917612345670"
}

Response:

{
    "status_code": 200,
    "data": {
        "contact": {
            "PrimaryContactID": 1,
            "emails": [
                "test1@gmail.com",
                "test2@gmail.com"
            ],
            "phoneNumbers": [
                "+4917612345670",
                "+4917612345672",
                "+4917612345671"
            ],
            "secondaryContactIds": [
                2,
                3
            ]
        }
    }
}