-
Notifications
You must be signed in to change notification settings - Fork 3
User
kimsungwon edited this page Apr 2, 2024
·
15 revisions
- 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 |
- 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"
}
- Status code
- 4xx
- 5xx
- Body
{
"messages": ["{error_message}"]
}
- 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
}
- 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"
}
- Status code
- 4xx
- 5xx
- Body
{
"messages": ["{error_message}"]
}