Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: API 응답 요소를 재정리한다. #84

Open
seokjin8678 opened this issue Feb 18, 2024 · 0 comments · May be fixed by #85
Open

refactor: API 응답 요소를 재정리한다. #84

seokjin8678 opened this issue Feb 18, 2024 · 0 comments · May be fixed by #85
Assignees
Labels
⚙️ 리팩터링 리팩터링에 관한 작업 🚨 우선순위上 중요한 작업

Comments

@seokjin8678
Copy link
Contributor

이슈 내용

02/18 회의에서 API 응답 명세가 확정되었습니다.

기존 응답은 다음과 같습니다.

성공

{
  "message": null
  "data": {
    "foo": "bar"
  }
}

실패

{
  "message": "로그인이 실패했습니다.",
  "data": null
}

회의 이후 변한 응답의 형식은 다음과 같습니다.

성공

{
  "status": 200,
  "message": null
  "data": {
    "foo": "bar"
  }
}

실패

{
  "status": 400,
  "message": "로그인이 실패했습니다.",
  "data": null
}

기존에 mesage, data는 잘 넘겨주고 있으므로 status만 추가하면 될 것 같습니다.

@seokjin8678 seokjin8678 added 🚨 우선순위上 중요한 작업 ⚙️ 리팩터링 리팩터링에 관한 작업 labels Feb 18, 2024
@seokjin8678 seokjin8678 self-assigned this Feb 18, 2024
@seokjin8678 seokjin8678 linked a pull request Feb 18, 2024 that will close this issue
@seokjin8678 seokjin8678 linked a pull request Feb 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ 리팩터링 리팩터링에 관한 작업 🚨 우선순위上 중요한 작업
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant