Core APIs
List
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 { "tab" "examples", "url" "https //orca pathfix com/functions/list/bestmatch", "name" "best non empty match api (single match)", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "28usdqyeh3qrdmtvamsqt", "code" "{\n \\"output\\" {\n \\"best match\\" \\"second item\\"\n }\n}", "language" "200" }, { "id" "yix64dyiudpjgbrfsfawb", "code" "{\n \\"message\\" \\"error\\"\n}", "language" "404" } ], "selectedlanguageid" "28usdqyeh3qrdmtvamsqt" }, "examples" { "languages" \[ { "id" "encjz9tstg38f0x taa4x", "code" "{\r\n \\"bestmatches\\" {\r\n \\"best match\\" {\r\n \\"input\\" \[\r\n \\"\\",\r\n \\"second item\\",\r\n \\"third item\\"\r\n ],\r\n \\"rule\\" \\"first not empty\\"\r\n }\r\n }\r\n}", "language" "json" } ], "selectedlanguageid" "encjz9tstg38f0x taa4x" }, "description" "\ncall the following api to execute a single match ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } } { "tab" "examples", "url" "https //orca pathfix com/functions/list/bestmatch", "name" "best non empty match api (multiple match)", "method" "post", "request" { "pathparameters" \[], "queryparameters" \[], "headerparameters" \[], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "cuo9akdhgayeurqdxwmzc", "code" "{\n \\"output\\" {\n \\"name\\" \\"james dean\\",\n \\"status\\" \\"unknown\\"\n }\n}", "language" "200" }, { "id" "yanvjqk3fgdhbrcl9fmhw", "code" "{\n \\"message\\" \\"error\\"\n}", "language" "404" } ], "selectedlanguageid" "cuo9akdhgayeurqdxwmzc" }, "examples" { "languages" \[ { "id" "h y0mzjctmxeeai79q6ey", "code" "{\r\n \\"bestmatches\\" {\r\n \\"name\\" {\r\n \\"input\\" \[\r\n \\"james dean\\",\r\n \\"james\\",\r\n \\"dean\\"\r\n ],\r\n \\"rule\\" \\"first not empty\\"\r\n },\\"status\\" {\r\n \\"input\\" \[\r\n \\"\\",\r\n \\"unknown\\",\r\n ],\r\n \\"rule\\" \\"first not empty\\"\r\n }\r\n }\r\n}", "language" "json" } ], "selectedlanguageid" "h y0mzjctmxeeai79q6ey" }, "description" "\ncall the following api to execute multiple match ", "currentnewparameter" { "label" "body parameter", "value" "bodydataparameters" } }