🌷 USER 🌷 - Polaris-Sopterm/Polaris-BACKEND Wiki

Original URL: https://github.com/Polaris-Sopterm/Polaris-BACKEND/wiki/🌷-USER-🌷

λͺ©μ°¨


νšŒμ›κ°€μž… API


Decription


μœ μ €μ˜ νšŒμ›κ°€μž… API μž…λ‹ˆλ‹€.

Request


EndPoint

POST /user/v0

Header

application/json

Body Parameter

parameter Type Description
email string 이메일
password string λΉ„λ°€λ²ˆν˜Έ
nickname string λ‹‰λ„€μž„

Response


{
  "idx": {integer},
  "email": {string},
  "password": {string},
  "nickname": {string},
  "createdAt": {string},
  "updatedAt": {string},
}

μ‚¬μš©μž μˆ˜μ • API


Decription


μœ μ €μ˜ λ‹‰λ„€μž„μ„ λ³€κ²½ν•  수 μžˆμŠ΅λ‹ˆλ‹€

Request


EndPoint

PATCH /user/v0/me

Header

application/json, Authorization Baerer

Body Parameter

parameter Type Description
nickname string λ‹‰λ„€μž„

Response


{
  "idx": {integer},
  "email": {string},
  "password": {string},
  "nickname": {string},
  "createdAt": {string},
  "updatedAt": {string},
}

이메일 쀑볡 체크 API


Decription


이메일 쀑볡 μ—¬λΆ€λ₯Ό ν™•μΈν•©λ‹ˆλ‹€.

Request


EndPoint

POST /user/v0/checkEmail

Header

application/json

Body Parameter

parameter Type Description
email string 이메일

Response


{
  "email": {string},
  "isDuplicated": false,
}

둜그인 API


Decription


이메일과 λΉ„λ°€λ²ˆν˜Έλ₯Ό μ΄μš©ν•΄ λ‘œκ·ΈμΈν•©λ‹ˆλ‹€.

Request


EndPoint

POST /auth/v0

Header

Body Parameter

parameter Type Description
email string(email)' 이메일
password string λΉ„λ°€λ²ˆν˜Έ

Response


{
  "accessToken": {string(jwt)},
  "refreshToken": {string},
}

νšŒμ›νƒˆν‡΄ API


Decription


μœ μ € νšŒμ›νƒˆν‡΄ API μž…λ‹ˆλ‹€.

Request


EndPoint

DELETE /user/v0

Header

application/json token: Bearer

Response


{
  "isSuccess": true,
}

λ‘œκ·Έμ•„μ›ƒ API


Decription


λ‘œκ·Έμ•„μ›ƒ ν•©λ‹ˆλ‹€.

Request


EndPoint

DELETE /auth/v0

Header

Body Parameter

Response


200

{
  "isSuccess": true
},

AccessToken μž¬λ°œκΈ‰ api


Decription


μ•‘μ„ΈμŠ€ 토큰을 μž¬λ°œκΈ‰ λ°›μŠ΅λ‹ˆλ‹€.

Request


EndPoint

PUT /auth/v0

Header

Body Parameter

parameter Type Description
refreshToken string' μž¬λ°œκΈ‰ 토큰

Response


{
  "accessToken": {string(jwt)},
  "refreshToken": {string},
}