Updated api to use CardModel when returning cards