From 20e48120e362c089db377333d2e8ba951601835d Mon Sep 17 00:00:00 2001 From: sergi-Jr Date: Wed, 26 Jun 2024 15:55:30 +0400 Subject: [PATCH] add name to TaskDTO.assigneeId json property --- src/main/java/hexlet/code/app/task/dto/TaskDTO.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/hexlet/code/app/task/dto/TaskDTO.java b/src/main/java/hexlet/code/app/task/dto/TaskDTO.java index 1e16953dc..866d84c0b 100644 --- a/src/main/java/hexlet/code/app/task/dto/TaskDTO.java +++ b/src/main/java/hexlet/code/app/task/dto/TaskDTO.java @@ -1,5 +1,6 @@ package hexlet.code.app.task.dto; +import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Getter; import lombok.Setter; @@ -13,6 +14,7 @@ public class TaskDTO { private int index; private LocalDate createdAt; private String title; + @JsonProperty("assignee_id") private long assigneeId; private String content; private String status;