❔ How to structure DTOs
If you're making a DTO, do you make it like this
Or like this
Or like this
Basically, should there be one DTO that is used for all OperationTypes, or one endpoint and DTO per type (Update/Delete/Etc)?
And the last one is quite bad, I'm sure, but if the Student is complex and long, would it ever be acceptable?
Or like this
Or like this
Basically, should there be one DTO that is used for all OperationTypes, or one endpoint and DTO per type (Update/Delete/Etc)?
And the last one is quite bad, I'm sure, but if the Student is complex and long, would it ever be acceptable?