add resource controller
change interface to use QueryMap instead of particular parameters