I need a dynamic filtering criteria for querying west webservices using post.
to give you an example.
{
"fields": [
"field":"firstName",
"field":"lastName"
]
,
"filters":
[
filter{"field":"firstName",
"operation":"EQ",
"value":"FIRSTNAME"
},
filter{"field":"LastName",
"operation":"LIKE",
"value":["FIRSTNAME"]
},
filter{"field":"address",
"operation":"IN",
"value":["1","2","3","4"]
},
]
}
please observe for operation "EQ" , it has single string, for rest of the filters, you need a list
based on operation, i want the value to be either as List or single string, how to build this dynamically in java, is it possible.