[v4] Why the structure of the API response is different depending on the endpoint?

System Information
  • Strapi Version: 4.3.6
  • Database: SQLite
  • Node Version: v16.16.0
  • NPM Version: 8.11.0
  • Yarn Version: 1.22.11

Hello Strapi community,

When I make a call (for example) to /api/jobs and I populate some fields, I get a response in the following format:

{
   id: number
   attributes: {
      name: string
      ...etc
   }
}

But when I make a call to /api/users/me and I populate some fields I dont get the same structure, I don’t get the nested attributes object and I just get all the fields I need.

Why is the structure of the response different?

Thank you so much for this awesome product.