Linking different orders made with different contact information to the same person. For detailed use case - Read Here
- Clone the repo
Identity-Reconciliation
- Go to directory
/Identity-Reconciliation
- Execute
docker-compose up -d
/identify
endpoint is exposed at -0.0.0.0:5432/identify
- Send a POST request with JSON body. JSON Body has format
{ "email":"email", "phoneNumber":"phone" }
SET UP : Fire a POST request - 0.0.0.0:5432/identify
INPUT :
{ "email":"mcfly@hillvalley.edu","phoneNumber":"123456" }
OUTPUT :
{
"contact": {
"emails": [
"mcfly@hillvalley.edu"
],
"phoneNumbers": [
"123456"
],
"primaryContactId": 1
}
}
RESULT : PASS
INPUT :
{ "email":"lorraine@hillvalley.edu","phoneNumber":"123456"}
OUTPUT :
{
"contact": {
"emails": [
"mcfly@hillvalley.edu",
"lorraine@hillvalley.edu"
],
"phoneNumbers": [
"123456"
],
"primaryContactId": 1,
"secondaryContactId": [
2
]
}
}
RESULT : PASS
INPUT :
{ "email":"null","phoneNumber":"123456"}
OUTPUT :
{
"contact": {
"emails": [
"mcfly@hillvalley.edu",
"lorraine@hillvalley.edu"
],
"phoneNumbers": [
"123456"
],
"primaryContactId": 1,
"secondaryContactId": [
2
]
}
}
RESULT : PASS
INPUT :
{ "eml":"null","phone":"123456"}
OUTPUT:
{"error": "Invalid JSON data. Missing Parameters"}
RESULT : PASS