[GET] 사용자 게시물 리스트 조회 - GreenByMe/GreenByMe_Server GitHub Wiki

사용자 게시물 리스트 조회

메소드 경로 짧은설명
GET /api/users/{userId}/posts 사용자 게시물 리스트 조회

요청 헤더

content-type: application/json

요청 파라미터

userId: 사용자의 Id

응답 바디

조회 성공

[
  {
    "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"
  },
  {
    "postId": 28,
    "nickName": "angelHack",
    "picture": "http://ec2-13-58-104-154.us-east-2.compute.amazonaws.com:8080/api/posts/images/dfdf3123.png",
    "thumbsUp": 0,
    "title": "텀블러 인증",
    "text": "어려웠어요 ㅜㅜㅜ",
    "createDate": "2020-07-19T21:24:13",
    "lastModifiedDate": "2020-07-19T21:24:13"
  }
]