Accomodate recent change to support dynamic update in API.
Generate find_all_by method in model and controller.