JNU-econovation / jnu-wiki-be

전남대 학생들을 위한 전대위키 서비스
https://jnu-wiki.vercel.app/?_vercel_share=lgEftxL7mgkpGhyFMnkseGsYEgcflHVg
3 stars 2 forks source link

이메일 검증 API SPEC #83

Open jminkkk opened 11 months ago

jminkkk commented 11 months ago
HTTP Method URI
POST /members/check/email
{
  "email" : "moly@naver.com",
}

Response

Success

Name Value Description
content-type application/json  
{
  "success" : true,
  "response" : null,
  "error": null
}

Fail1

Status Description
400 BAD_REQUEST 잘못된 요청
500 Internal Server Error unknown server error

400 BAD_REQUEST

{
  "success" : false,
  "response" : null,
   "error": {
    "message": "중복된 이메일이 존재합니다.:중복된이메일",
    "status": 400
  }
}

Fail2

{
  "nickname" : "올바르지 못한 형식",
}

400 BAD_REQUEST

{
  "success" : false,
  "response" : null,
   "error": {
    "message": "이메일이 형식이 아닙니다. : mmnaver.com",
    "status": 400
  }
}
BlackBean99 commented 11 months ago

error message에 input이었던 값을 넣는 이유는 무엇일까요?