Replies

APIs related to Post Comment Replies

Get Replies list

GET https://multiply.arbre.in/api/post/comments/{comment_id}/comments

This endpoint will give a list of replies for a given comment_id

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

{
    "data": [
        {
            "id": 1,
            "text": "πŸ˜πŸ‘",
            "likes": [
                {
                    "id": 1,
                    "role": "superadmin",
                    "name": "Admin",
                    "username": "admin",
                    "email": "[email protected]",
                    "phone_number": "8360818229",
                    "gender": null,
                    "dob": null,
                    "email_verified_at": null,
                    "current_team_id": null,
                    "profile_photo_path": null,
                    "created_at": "2021-09-30T17:55:36.000000Z",
                    "updated_at": "2021-09-30T17:55:36.000000Z",
                    "profile_photo_url": "https://ui-avatars.com/api/?name=Admin&color=7F9CF5&background=EBF4FF",
                    "pivot": {
                        "post_comment_reply_id": 1,
                        "user_id": 1,
                        "created_at": "2021-09-30T18:00:07.000000Z",
                        "updated_at": "2021-09-30T18:00:07.000000Z"
                    }
                }
            ],
            "creator": {
                "id": 1,
                "role": "superadmin",
                "name": "Admin",
                "username": "admin",
                "email": "[email protected]",
                "phone_number": "8360818229",
                "gender": null,
                "dob": null,
                "email_verified_at": null,
                "current_team_id": null,
                "profile_photo_path": null,
                "created_at": "2021-09-30T17:55:36.000000Z",
                "updated_at": "2021-09-30T17:55:36.000000Z",
                "profile_photo_url": "https://ui-avatars.com/api/?name=Admin&color=7F9CF5&background=EBF4FF"
            },
            "created": "1 day ago",
            "created_at": "2021-09-30T18:00:01.000000Z",
            "updated": "1 day ago",
            "updated_at": "2021-09-30T18:00:01.000000Z"
        }
    ]
}

Get Single Reply

GET https://multiply.arbre.in/api/post/comments/{comment_id}/replies/{reply_id}

This endpoint will give a single reply for a given comment_id and reply_id

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

Create Reply

POST https://multiply.arbre.in/api/post/comments/{comment_id}/replies

This endpoint will create a reply for a given comment_id

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

Request Body

Name
Type
Description

text

string

your reply text

Add or Remove Like

POST https://multiply.arbre.in/api/post/comments/{comment_id}/replies/{reply_id}/like

This endpoint will add or remove like for a given reply. It acts as a toggle for the Like action.

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

Last updated

Was this helpful?