added conditions in rest api filter