Inconsistency between responses gotten from the REST API and the Entity service API

Update: I could solve this issue using the strapi-plugin-transformer plugin I was referred to in this thread: