I'm just starting out with the APIs and am trying to decide whether to map the data types generated by the service to a domain model, or just use them directly.
I wouldn't normally expose data contract types outside of the communication layer, but in this case the API is large and I don't have any experience of using it.
In your experience, is it worth building a separate domain model and mapping service types to and from this model when you call the API? Or do you just consume the service generated data types?
I wouldn't normally expose data contract types outside of the communication layer, but in this case the API is large and I don't have any experience of using it.
In your experience, is it worth building a separate domain model and mapping service types to and from this model when you call the API? Or do you just consume the service generated data types?


Comment