[GET] 사용자 상세정보 리스트 조회 - GreenByMe/GreenByMe_Server GitHub Wiki
사용자의 진행중 미션과 게시물 리스트를 조회
| 메소드 |
경로 |
짧은설명 |
| GET |
/api/users/{userId} |
사용자의 진행중 미션과 게시물 리스트를 조회합니다. |
요청 헤더
content-type: application/json
요청 파라미터
userId: 사용자의 Id
응답 바디
조회 성공
{
"userId": 2,
"email": "[email protected]",
"nickName": "angelHack",
"pictureUrl": null,
"missionInfoList": [
{
"missionInfoId": 22,
"userId": 2,
"missionId": 6,
"missionInfoStatus": "IN_PROGRESS",
"finishCount": 28,
"progress": 1,
"remainPeriod": 30,
"missionPictureUrl": "http://ec2-13-58-104-154.us-east-2.compute.amazonaws.com:8080/api/missions/images/tooth.jpg",
"startDate": "2020-07-19T20:24:11",
"endDate": "2020-08-18T20:24:11"
}
],
"posts": [
{
"postId": 24,
"nickName": "angelHack",
"picture": "http://ec2-13-58-104-154.us-east-2.compute.amazonaws.com:8080/api/posts/images/KakaoTalk_20190509_010954834.jpg",
"thumbsUp": 0,
"title": "인증하기",
"text": "생각보다 어려웠어요",
"createDate": "2020-07-19T20:57:00",
"lastModifiedDate": "2020-07-19T20:57:00"
}
]
}