Skip to content

[Android] GET /api/histories 의 json 데이터 구조 변경  #36

@ku-kim

Description

@ku-kim

기능 요청사항

GET /api/histories API의 JSON 데이터 변경

요청 세부사항

API 구현 중에 쿼리 연산 최적화로 아래와 같이 json 형태를 변경이 필요해 보입니다.
변경해도 괜찮을까요?

기존 json

[
  {
    "id": 1,
    "todo": {
      "id": 1,
      "title": "Github 공부하기",
      "contents": "add, commit, push",
      "user": "sam",
      "status": "todo",
      "createdDateTime": "2022-04-06T15:30:00.000+09:00",
      "updatedDateTime": "2022-04-06T16:30:00.000+09:00"
    },
    "action": "add",
    "from status": "",
    "to status": "",
    "createdDateTime": "2022-04-06T15:30:00.000+09:00"
  },
  {
    "id": 2,
    "todo": {
      "id": 1,
      "title": "Github 공부하기",
      "contents": "add, commit, push",
      "user": "sam",
      "status": "doing",
      "createdDateTime": "2022-04-06T15:30:00.000+09:00",
      "updatedDateTime": "2022-04-06T16:30:00.000+09:00"
    },
    "action": "move",
    "from status": "todo",
    "to status": "doing",
    "createdDateTime": "2022-04-06T16:30:00.000+09:00"
  }
]

변경할 json

[
  {
    "id": 1,
    "todoId": 1,
    "todoTitle": "Github 공부하기",
     "user": "sam",
    "action": "add",
    "fromStatus": "",
    "toStatus": "",
    "createdAt": "2022-04-06 15:30:00"
  },
  {
    "id": 2,
    "todoId": 1,
    "todoTitle": "Github 공부하기",
     "user": "sam",
    "action": "move",
    "fromStatus": "todo",
    "toStatus": "doing",
    "createdAt": "2022-04-06 16:30:00"
  }
]

Metadata

Metadata

Labels

Android안드로이드feat새로운 기능 추가

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions