JNU-econovation/jnu-wiki-be

닉네임 중복 검사 API SPEC

Opened this issue · 0 comments

  • 닉네임를 입력하여 중복 여부를 확인 할 수 있다.

Request

HTTP Method URI
POST /members/check/nickname
{
  "nickname" : "moly",
}

Response

Success

  • Status: 200 OK
  • Header
Name Value Description
content-type application/json  
{
  "success" : true,
  "response" : null,
  "error": null
}

Fail

Status Description
400 BAD_REQUEST 잘못된 요청
500 Internal Server Error unknown server error
  • RequestBody
{
  "nickname" : "중복된닉네임",
}

400 BAD_REQUEST

{
  "success" : false,
  "response" : null,
   "error": {
    "message": "중복된 닉네임 존재합니다.:중복된닉네임",
    "status": 401
  }
}