Skip to content

Commit 7814569

Browse files
authored
Merge pull request #21 from rosette-api/RLPNC-7402-curl-example
RLPNC-7402 Added record similarity curl example
2 parents 6dad8ef + 8671df9 commit 7814569

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

examples/record_similarity.curl

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
curl -s -X POST \
2+
-H "X-RosetteAPI-Key: your_api_key" \
3+
-H "Content-Type: application/json" \
4+
-H "Accept: application/json" \
5+
-H "Cache-Control: no-cache" \
6+
-d '{"fields":{"dob2":{"type":"rni_date","weight":0.1},"primaryName":{"type":"rni_name","weight":0.5},"dob":{"type":"rni_date","weight":0.2},"addr":{"type":"rni_address","weight":0.5}},"properties":{"threshold":0.7,"includeExplainInfo":true},"records":{"left":[{"dob2":{"date":"1993/04/16"},"primaryName":{"text":"Ethan R","entityType":"PERSON","language":"eng","languageOfOrigin":"eng","script":"Latn"},"dob":"1993-04-16","addr":"123 Roadlane Ave"},{"primaryName":{"text":"Evan R"},"dob":{"date":"1993-04-16"}}],"right":[{"primaryName":{"text":"Seth R","language":"eng"},"dob":{"date":"1993-04-16"}},{"dob2":{"date":"1993/04/16"},"primaryName":"Ivan R","dob":{"date":"1993-04-16"},"addr":{"address":"123 Roadlane Ave"}}]}}' \
7+
"https://api.rosette.com/rest/v1/record-similarity"

0 commit comments

Comments
 (0)