Add filtering support to the list methods of API.