Comments
APIs related to Post comments and replies
Get Comments list
Headers
Name
Type
Description
{
"data": [
{
"id": 2,
"text": "Keep it up 👍",
"replies": [],
"likes": [
{
"id": 2,
"role": "user",
"name": "Mrinmai Sharma",
"username": "mrinmaisharma",
"email": "[email protected]",
"phone_number": "1234567890",
"gender": "male",
"dob": "1997-12-15",
"email_verified_at": null,
"current_team_id": null,
"profile_photo_path": null,
"created_at": "2021-09-30T18:05:08.000000Z",
"updated_at": "2021-09-30T18:05:08.000000Z",
"profile_photo_url": "https://ui-avatars.com/api/?name=Mrinmai+Sharma&color=7F9CF5&background=EBF4FF",
"pivot": {
"post_comment_id": 2,
"user_id": 2,
"created_at": "2021-09-30T18:06:59.000000Z",
"updated_at": "2021-09-30T18:06:59.000000Z"
}
}
],
"creator": {
"id": 2,
"role": "user",
"name": "Mrinmai Sharma",
"username": "mrinmaisharma",
"email": "[email protected]",
"phone_number": "1234567890",
"gender": "male",
"dob": "1997-12-15",
"email_verified_at": null,
"current_team_id": null,
"profile_photo_path": null,
"created_at": "2021-09-30T18:05:08.000000Z",
"updated_at": "2021-09-30T18:05:08.000000Z",
"profile_photo_url": "https://ui-avatars.com/api/?name=Mrinmai+Sharma&color=7F9CF5&background=EBF4FF"
},
"created": "1 day ago",
"created_at": "2021-09-30T18:06:56.000000Z",
"updated": "1 day ago",
"updated_at": "2021-09-30T18:06:56.000000Z"
},
{
"id": 3,
"text": "😍 yay!!",
"replies": [
{
"id": 2,
"post_comment_id": 3,
"text": "hello",
"created_at": "2021-10-02T10:20:48.000000Z",
"updated_at": "2021-10-02T10:20:48.000000Z",
"created_by": 1,
"updated_by": 1,
"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": 2,
"user_id": 1,
"created_at": "2021-10-02T10:22:12.000000Z",
"updated_at": "2021-10-02T10:22:12.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"
}
}
],
"likes": [],
"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": "2 hours ago",
"created_at": "2021-10-02T09:35:04.000000Z",
"updated": "2 hours ago",
"updated_at": "2021-10-02T09:35:04.000000Z"
},
{
"id": 5,
"text": "Okay",
"replies": [],
"likes": [],
"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": "2 hours ago",
"created_at": "2021-10-02T09:38:32.000000Z",
"updated": "2 hours ago",
"updated_at": "2021-10-02T09:38:32.000000Z"
},
{
"id": 6,
"text": "fine",
"replies": [],
"likes": [],
"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": "2 hours ago",
"created_at": "2021-10-02T09:38:56.000000Z",
"updated": "2 hours ago",
"updated_at": "2021-10-02T09:38:56.000000Z"
}
]
}Get Single Comment
Headers
Name
Type
Description
Create Comment
Headers
Name
Type
Description
Request Body
Name
Type
Description
Add or Remove Like
Headers
Name
Type
Description
Last updated