Skip to content

[POST] 로그인

DongGeon0908 edited this page Nov 20, 2021 · 7 revisions

URL

METHOD URL ...
POST /api/member/login 로그인

Request Header

{
    "Content-Type": "application/json"
}

Request Body

{
    "email": "[email protected]",
    "password" : "!Oinging123"
}

Response Success When Include Club

{
  "status": 200,
  "message": "LOGIN_SUCCESS",
  "data": {
    "id": 4,
    "nickname": "ddassadsads",
    "role": "ROLE_MIDDLE_ADMIN",
    "clubName": "heelllllldd",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJzbWpkaGFwcHlAbmF2ZXIuY29tIiwiYXV0aCI6IlJPTEVfTUlERExFX0FETUlOIiwiZXhwIjoxNjM3NDg2NjQyfQ.IEthdS7_tA_rq509Rgtme8qit97FZIn-awt9dwIC5J0OscxjV_mGVI5AIavqUhUMXdm4lajACOxPqmfdnU-cWw"
  }
}

Response Success When Non Include Club

{
  "status": 200,
  "message": "LOGIN_SUCCESS",
  "data": {
    "id": 4,
    "nickname": "22",
    "role": "ROLE_USER",
    "clubName": "NON_INCLUDE_CLUB",
    "token": "eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ3cmpzQG5hdmVyLmNvbSIsImF1dGgiOiJVU0VSIiwiZXhwIjoxNjMwODQxMjAzfQ.QkmyDhPnz9VMEEIukDqca9gDzCra_AajBUbrcI3PMqkqVEZVxvMKFUCpjIuNeifGLygXceA_cY8N29DQhqGCSQ"
  }
}

Response Fail

{
  "status": 400,
  "message": "LOGIN_FAIL"
}