GET /accounts/setting/
- 개인정보 보기
- 권한: 로그인한 사용자
- parameters
key |
type |
default |
required |
description |
username |
Email |
|
|
변경 불가 |
first_name |
char(150) |
|
|
이름 |
last_name |
char(150) |
|
|
성 |
call_name |
char(150) |
|
|
닉네임 |
photo |
Image |
|
|
사진 |
tel |
EncryptedChar (100) |
|
|
전화 번호 (DB 에는 암호화 저장) |
address |
Encryptedchar (1024) |
|
|
주소 (DB 에는 암호화 저장) |
is_approved |
bool |
|
False |
승인 여부 |
is_staff |
bool |
|
False |
관리자 여부 |
date_joined |
datetime |
|
|
가입일 |
- input sample: N/A
- output sample
{
"data": {
"id": 2,
"username": "[email protected]",
"first_name": "BB",
"last_name": "Go",
"call_name": "BB Go",
"photo": null,
"tel": null,
"address": null,
"is_approved": true,
"is_staff": false,
"date_joined": "2023-09-13T08:46:07+0900"
}
}
PATCH /accounts/setting/
- 개인정보 수정
- 권한: 로그인한 사용자
- parameters: 상동
- intput sample
{
"call_name": "BBGO"
}
{
"data": {
"id": 2,
"username": "[email protected]",
"first_name": "BB",
"last_name": "Go",
"call_name": "BBGO",
"photo": null,
"tel": null,
"address": null,
"is_approved": true,
"is_staff": false,
"date_joined": "2023-09-13T08:46:07+0900"
}
}