Skip to content

DTOs for I/O #14

@Flix-29

Description

@Flix-29

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions