https://github.com/kunal768/bitespeed
API - Linking multiple contact informations to the same person using primary and secondary contacts
https://github.com/kunal768/bitespeed
gin-gonic golang postgresql
Last synced: 10 days ago
JSON representation
API - Linking multiple contact informations to the same person using primary and secondary contacts
- Host: GitHub
- URL: https://github.com/kunal768/bitespeed
- Owner: kunal768
- Created: 2024-05-22T11:17:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-07T13:32:41.000Z (over 1 year ago)
- Last Synced: 2025-02-05T11:45:26.196Z (12 months ago)
- Topics: gin-gonic, golang, postgresql
- Language: Go
- Homepage: https://www.notion.so/bitespeed/Bitespeed-Backend-Task-Identity-Reconciliation-53392ab01fe149fab989422300423199
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Linking multiple contact informations to the same person using primary and secondary contacts
# To Build
```shell
go build -o bitespeed
```
# To Run
```shell
./bitespeed
```
# Example Request
```json
{
"email": "babu1@digital.com",
"phoneNumber": "898991"
}
```
# Example Response
```json
{
"primaryContatctId": 46,
"emails": [
"babu1@digital.com"
],
"phoneNumbers": [
"898991"
],
"secondaryContactIds": []
}
```
# Example Request
```json
{
"email": "random@pennyworth.edu",
"phoneNumber": "898991"
}
```
# Example Response
```json
{
"primaryContatctId": 51,
"emails": [
"babu1@digital.com",
"random@pennyworth.edu"
],
"phoneNumbers": [
"898991",
"898991"
],
"secondaryContactIds": [
52
]
}
```
# Example Request
```json
{
"email": "random@pennyworth.edu",
"phoneNumber": "123456"
}
```
# Example Response
```json
{
"primaryContatctId": 52,
"emails": [
"random@pennyworth.edu",
"random@pennyworth.edu"
],
"phoneNumbers": [
"898991",
"123456"
],
"secondaryContactIds": [
52,
53
]
}
```
# Example Request
```json
{
"phoneNumber": "123456"
}
```
# Example Response
```json
{
"primaryContatctId": 53,
"emails": [
"random@pennyworth.edu"
],
"phoneNumbers": [
"123456"
],
"secondaryContactIds": [
53
]
}
```
# Example Request
```json
{
"email": "random@pennyworth.edu"
}
```
# Example Response
```json
{
"primaryContatctId": 51,
"emails": [
"babu1@digital.com",
"random@pennyworth.edu"
],
"phoneNumbers": [
"898991",
"898991"
],
"secondaryContactIds": [
52
]
}
```