I have an angular client and a Rest service which has a rich domain object. When calling the rest POST endpoint from angular should the client map its view to an object that is the json version ( which becomes the spring requestbody) of the services domain?
Or should the client map to a simple domain and the service maps the simple request object to its rich domain object and then performs actions I the domain object?
What is best practice when mapping back and forth between view model on client and rich domain object on service?