add example class ApiFilter that can be used to test filter rules on the
command line