controller sets params, format, and resource