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": "[email protected]",
   "phone": "+4917612345670"
}

Response:

{
    "status_code": 200,
    "data": {
        "contact": {
            "PrimaryContactID": 1,
            "emails": [
                "[email protected]",
                "[email protected]"
            ],
            "phoneNumbers": [
                "+4917612345670",
                "+4917612345672",
                "+4917612345671"
            ],
            "secondaryContactIds": [
                2,
                3
            ]
        }
    }
}