Skip to content
김은우 edited this page Jun 1, 2020 · 2 revisions

게시물 보기

Context-type : application/json

GET /api/post/:id

Request

body

{
	"id":2,
}

Response

Success : 200

{
        "id": 2,
        "content": "gdgd",
        "isDeleted": false,
        "isBlocked": false,
        "createdAt": "2020-04-11T11:32:23.000Z",
        "updatedAt": "2020-04-11T11:32:23.000Z",
        "UserId": 2,
        "RetweetId": null,
        "User": {
            "id": 2,
            "nickname": "aaa",
            "Image": null
        },
        "Images": [],
        "Likers": [],
        "Retweet": null,
        "Comments": [
            {
                "id": 1,
                "content": "ㅎㅇㅎㅇ",
                "isDeleted": false,
                "createdAt": "2020-04-11T11:32:31.000Z",
                "updatedAt": "2020-04-11T11:32:31.000Z",
                "UserId": 2,
                "PostId": 1,
                "ParentId": null,
                "User": {
                    "id": 2,
                    "nickname": "aaa",
                    "Image": null
                },
                "commentLikers": [
                    {
                        "id": 1,
                        "commentLike": {
                            "createdAt": "2020-04-11T11:48:18.000Z",
                            "updatedAt": "2020-04-11T11:48:18.000Z",
                            "CommentId": 1,
                            "UserId": 1
                        }
                    },
                    {
                        "id": 3,
                        "commentLike": {
                            "createdAt": "2020-04-11T12:17:00.000Z",
                            "updatedAt": "2020-04-11T12:17:00.000Z",
                            "CommentId": 1,
                            "UserId": 3
                        }
                    }
                ],
                "ReComment": []
            
}
Clone this wiki locally