Best Non Empty match
2 min
Use this to get the best non empty match of the two or more inputs. Clone this API to add more inputs
API Definition
Best Non Empty Match API (Single Match)
Call the following API to execute a single match:
POST
https://orca.pathfix.com/functions/list/bestmatch
json
{
"bestmatches": {
"best_match": {
"input": [
"",
"Second Item",
"Third Item"
],
"rule": "first_not_empty"
}
}
}200
{
"output": {
"best_match": "Second Item"
}
}404
{
"message": "error"
}
Best Non Empty Match API (Multiple Match)
Call the following API to execute multiple match:
POST
https://orca.pathfix.com/functions/list/bestmatch
json
{
"bestmatches": {
"name": {
"input": [
"james Dean",
"James",
"Dean"
],
"rule": "first_not_empty"
},"status": {
"input": [
"",
"unknown",
],
"rule": "first_not_empty"
}
}
}200
{
"output": {
"name": "James Dean",
"status":"unknown"
}
}404
{
"message": "error"
}