Change to params and params.resource for query and body