Educado-App / educado-backend

The repository for the educado content delivery services
GNU General Public License v3.0
2 stars 4 forks source link

[Backend - Refactor] System for mapping database objects to responses #204

Open madsWesth opened 1 week ago

madsWesth commented 1 week ago

This issue was raised when discovering that the backend was sending the passwords to the client/consumer, which is really bad.

We are currently returning the raw unaltered database objects which is bad practice.

We should have a system in place for easier control of the data, so a dev would need to specify which fields should be included in the response. This could be something like a DTO pattern or a response mapper

madsWesth commented 1 week ago

Related issue: https://github.com/Educado-App/educado-backend/issues/201