댓글, 대댓글 api 연결 관련 논의 #69
JangGusWjd
started this conversation in
General
Replies: 1 comment
|
오키오키 그렇게 구조 바꿔둘게! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
대댓글 같은 경우에 지금 예를 들어서 1번 스터디 글에 대해서 댓글이랑 대댓글을 불러올 때
/studys/posts/comments-by-postid/${parsedStudyId}/여기서 1번글에 대한 전체 댓글 불러옴/studys/posts/comments-by-parent/${parent_comment}/여기서 대댓글 불러옴이런식인데 그러면 댓글에서만 api를 두개를 불러와야 되고, 1번 글에 대해서 2개의 불러온 댓글,대댓글 api에 대해 대댓글이 어떤 댓글에 대한 대댓글인지 비교까지 해야되는 문제가 있어서
/studys/posts/comments-by-postid/${parsedStudyId}/이 주소에서 1번 글에 대한 댓글을 불러온다고 하면이런식으로 한번에 대댓글까지 불러오게 하는건 어때?
대댓글 post할 때 주소만 다르게 하고 댓글, 대댓글은 한번에 불러오게 하는걸로!
All reactions