Add utility method to get schema for given resource