JNU-econovation / jnu-wiki-be

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

유저 정보 조회 API SPEC #78

Open jminkkk opened 11 months ago

jminkkk commented 11 months ago

Request

HTTP Method URI
POST /members/info
Name Value Description
Authorization JWT 인증용 JWT

Response

Success

Name Value Description
content-type application/json  
{
  "success" : true,
  "response" : {
    "id" : 1,
    "nickName" : "cookie",
   "password" : "비밀번호"
  },
  "error": null
}

Fail

Status Description
400 BAD_REQUEST 잘못된 요청
401 UNAUTHORIZED 인증실패
404 NOT_FOUND 회원정보 없음
500 Internal Server Error unknown server error

401 UNAUTHORIZED

{
  "success" : false,
  "response" : null,
   "error": {
    "message": "잘못된 인증입니다.",
    "status": 401
  }
}

404 NOT_FOUND

{
  "success" : false,
  "response" : null,
  "error": {
    "message": "존재하지 않는 회원입니다.",
    "status": 404
  }
}