created api for filter using setparameter