blibli-future / detroit

Project Detroit
5 stars 0 forks source link

Convert Request/Response to DTO #6

Open adhikasp opened 7 years ago

adhikasp commented 7 years ago

DTO is more flexible and we can use it for input and output without needless duplication For example, no need for UserRequest for post and UserResponse for get, use UserDTO instead.

See also https://stackoverflow.com/questions/36174516/rest-api-dtos-or-not