Over-fetching and under-fetching problems in the REST API