C#C
C#3y ago
bookuha

❔ CRUD(REST) + DDD

Hi, I’m developing a simple CRUD messenger and trying to also have it DDD’ed.
The problem is that the interaction interface is REST, and I want to update a specific message content/recipient/color.
By terms of DDD I could simply get some domain services, aggregates with this logic injected or value objects and simply call the ChangeMessageColor(Message) method.
But REST, the way I understand it, makes me expose a single PUT message/id endpoint, that will receive any changes to the resource
Was this page helpful?