-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
The Controller should work with DTOs instead of the actual entite classes. The mapping from Entity to DTO and vice versa https://mapstruct.org can be used.
For each entity a DTO should be generated.
For the read endpoints the entity gets fetched and mapped to the DTO which then gets returned.
The write endpoints accept a DTO and map them to the entity.
@SproutInclude and @SproutExclude can be used to in- or exclude fields from the DTO.
Metadata
Metadata
Assignees
Labels
No labels