My page
My page
회원가입을 하거나 로그인에 성공한 후 유저 정보를 요청한다.
Get userinfo
GET
https://eton.io/users/userinfo
Headers
Name
Type
Description
authorization
string
Access token
{
"data": {
"userInfo": {
"id": user_id
"username": string,
"email": string,
"picture": string
}
},
"message": "Ok"
}
Get userinfo by username
GET
/users/userinfo/:username
// notion에서 member로 이동
Path Parameters
Name
Type
Description
username
string
The user you want to get info of.
Headers
Name
Type
Description
authorization
string
Access Token
{
"data" : {
"userInfo" : { userInfo (except pw) },
},
"message": "Ok."
}
Modify userinfo
PUT
/users/userinfo
Headers
Name
Type
Description
authorization
string
Access token.
Request Body
Name
Type
Description
string
The user's email.
password
string
The user's password.
username
string
The user's nickname.
{
"message": "Your info got modified."
}
Get the user's tasks
GET
/users/:user_id/mytask
Path Parameters
Name
Type
Description
user_id
integer
The user's ID.
Headers
Name
Type
Description
authorization
string
Access token.
{
"data": {
"myTask":
{
"title" : {boards_title},
"taskList" :
[
{
id : 1,
title : 'create',
}, {
id : 2,
title : 'read',
}
]
},
{
"title": {boards_title2},
"taskList":
[
{
id : 4,
title : 'update',
}, {
id : 6,
title : 'delete',
}, {
id : 7,
title : 'test',
}
]
}
},
"message": "ok"
}
userid가 있는 board를 찾고, 해당 board_id의 prg_priority에 있는 progresses 찾는다.
각 progress의 task_priority에 있는 task를 모두 담아서 응답.
Last updated
Was this helpful?