Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

프로필 > 학습로그 > 날짜별 모아보기(달력 형식) 기능을 만든다. #231

Closed
bucketHaneul opened this issue Aug 16, 2021 · 2 comments
Assignees
Milestone

Comments

@bucketHaneul
Copy link
Contributor

No description provided.

@gracefulBrown gracefulBrown added this to the 3rd milestone Aug 16, 2021
@gracefulBrown gracefulBrown changed the title 날짜별 모아보기(달력 형식) 기능을 만든다. 프로필 > 학습로그 > 날짜별 모아보기(달력 형식) 기능을 만든다. Aug 16, 2021
@gracefulBrown
Copy link
Contributor

필요할 것 같은 API

  • 월별 포스트 목록 조회

@qhals321
Copy link
Contributor

날짜별 유저 포스트 목록 더미 api 완성되었습니다!
관련 api 정보입니다!
테스트 문서에도 추가되었습니다!

응답은 한 번 객체로 감싸서 data 안에 배열로 넣었습니다!

쿼리 스트링 정보

  • int month : 월
  • int year : 연도

쿼리 스트링 값이 주어지지 않으면 현재 시간 기준이 값이 된다. (default 값은 현재 시간)

예시

Request

GET /members/gracefulBrown/calendar-posts?year=2021&month=8 HTTP/1.1
Content-Type: application/json; charset=UTF-8
Host: localhost:4000

Response

HTTP/1.1 200 OK
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Content-Type: application/json
Transfer-Encoding: chunked
Date: Wed, 18 Aug 2021 02:12:14 GMT
Keep-Alive: timeout=60
Connection: keep-alive
Content-Length: 1327

{
  "data" : [ {
    "id" : 0,
    "title" : "타이틀 0",
    "createdAt" : "2021-08-01T12:00:00",
    "updatedAt" : "2021-08-01T12:00:00"
  }, {
    "id" : 1,
    "title" : "타이틀 1",
    "createdAt" : "2021-08-02T12:00:00",
    "updatedAt" : "2021-08-02T12:00:00"
  }, {
    "id" : 2,
    "title" : "타이틀 2",
    "createdAt" : "2021-08-03T12:00:00",
    "updatedAt" : "2021-08-03T12:00:00"
  }, {
    "id" : 3,
    "title" : "타이틀 3",
    "createdAt" : "2021-08-04T12:00:00",
    "updatedAt" : "2021-08-04T12:00:00"
  }, {
    "id" : 4,
    "title" : "타이틀 4",
    "createdAt" : "2021-08-05T12:00:00",
    "updatedAt" : "2021-08-05T12:00:00"
  }, {
    "id" : 5,
    "title" : "타이틀 5",
    "createdAt" : "2021-08-06T12:00:00",
    "updatedAt" : "2021-08-06T12:00:00"
  }, {
    "id" : 6,
    "title" : "타이틀 6",
    "createdAt" : "2021-08-07T12:00:00",
    "updatedAt" : "2021-08-07T12:00:00"
  }, {
    "id" : 7,
    "title" : "타이틀 7",
    "createdAt" : "2021-08-08T12:00:00",
    "updatedAt" : "2021-08-08T12:00:00"
  }, {
    "id" : 8,
    "title" : "타이틀 8",
    "createdAt" : "2021-08-09T12:00:00",
    "updatedAt" : "2021-08-09T12:00:00"
  }, {
    "id" : 9,
    "title" : "타이틀 9",
    "createdAt" : "2021-08-10T12:00:00",
    "updatedAt" : "2021-08-10T12:00:00"
  } ]
}

@gracefulBrown gracefulBrown removed this from the 3rd milestone Aug 30, 2021
@qhals321 qhals321 self-assigned this Aug 30, 2021
@qhals321 qhals321 added this to the 4th milestone Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants