def find_reports(): reports = report_service.get_all() return dumps(report_service.reports_to_dict(reports))
def find_reports_by_category(category_id): reports = category_service.get_reports_by_id(category_id) return dumps(report_service.reports_to_dict(reports))