Suppose you have a Foo model. One business example is simply to create an instance of Foo, so my model has a corresponding CreateFooCommand called by calling a POST request for a given REST endpoint.
Of course, there are other teams.
But now I have a ViewModel that is derived from my DomainModel. It's just a sql table with raw data - every Foo instance from DomainModel has a corresponding derived instance of ViewModel. Both have different identifiers (on DomainModel there is DomainID, on ViewModel it is just a value long).
Now: should I even take care of HATEOAS in that case? In the correct REST implementation, I should at least return the url in the header. But since my view model is derived only from DomainModel, do I care? I donβt even have a view model ID at the time of creating my DomainModel.
source
share