Skip to content
kimsungwon edited this page Apr 2, 2024 · 15 revisions

Table of Contents

Get User Detail

Request

  • URL
HTTP Method URL
GET /api/v1/users/{userId}
  • Query Parameters
Key Type Value Description
  • Headers
Key Value Description
Authorization Token from Mr.C server
  • Cookies
Key Value Description
mrcToken Token from Mr.C server

Response

Success

  • Status code
    • 200
  • Body
{
    "id": "{UUID v4}",
    "nickname": "신비로운 평론가 붉은 여우",
    "tag": "#MQ3B",
    "idp": "GOOGLE",
    "email": "[email protected]",
    "accessLevel": "USER", // USER: USER, DEVELOPER: DEVELOPER, ADMIN: ADMIN
    "createdAt": "2023-04-02T15:08:00+09:00",
    "updatedAt": "2023-04-02T15:08:00+09:00" 
}

Fail

  • Status code
    • 4xx
    • 5xx
  • Body
{
    "messages": ["{error_message}"]
}

Replace User

Request

  • URL
HTTP Method URL
PUT /api/v1/users/{userId}
  • Query Parameters
Key Type Value Description
  • Headers
Key Value Description
Authorization Token from Mr.C server
  • Cookies
Key Value Description
mrcToken Token from Mr.C server
  • Body
{
    "email": "[email protected]",
    "accessLevel": "USER" // USER: USER, DEVELOPER: DEVELOPER, ADMIN: ADMIN
}

Response

Success

  • Status code
    • 200
  • Body
{
    "id": "{UUID v4}",
    "nickname": "신비로운 평론가 붉은 여우",
    "tag": "#MQ3B",
    "idp": "GOOGLE",
    "email": "[email protected]",
    "accessLevel": "USER", // USER: USER, DEVELOPER: DEVELOPER, ADMIN: ADMIN
    "createdAt": "2023-04-02T15:08:00+09:00",
    "updatedAt": "2023-04-02T15:08:00+09:00" 
}

Fail

  • Status code
    • 4xx
    • 5xx
  • Body
{
    "messages": ["{error_message}"]
}
Clone this wiki locally