Added filtering support for REST API