B
B
Biaci_Anj2022-01-25 14:21:10
Java
Biaci_Anj, 2022-01-25 14:21:10

Should I use different DTOs for Response and Creation object?

I need less information to create an object than to issue it in the front. Is it worth creating different DTOs for this, or is it quite ok to work with one?
And is it okay to do it "mixed", sometimes use ResponseDto and CreationDto, and for some Entity not. Because one DTO in my creation has additional maps and I thought it would be right to separate them.
I'm learning and would love to hear from the experts.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacen11, 2022-01-25
@Biaci_Anj

Is it worth creating different ATTs for this?
in large projects it is customary to share, in personal it is possible and so, it is unlikely that you will catch problems because of this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question