Generate an api with a method for each modules fields