Adding a convenience function for getting all the fields on a particular resource.