Posts

APIs related to posts

Get Posts list

GET https://multiply.arbre.in/api/posts

This endpoint will give a list of posts

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

{
    "data": [
        {
            "id": 1,
            "description": " It was popularised in the 1960s with the release of Letraset sheets containing Lorem",
            "content": {
                "images": [
                    "https://arbre-multiply.s3.ap-south-1.amazonaws.com/local/posts/1/0.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARDKE3KWTXOKFNIQA%2F20211002%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20211002T110304Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=8ffb55baeb909ee55715682fa9d8971a8fb4db6e403f53fd9735fc4f77538a29",
                    "https://arbre-multiply.s3.ap-south-1.amazonaws.com/local/posts/1/1.jpg?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIARDKE3KWTXOKFNIQA%2F20211002%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20211002T110304Z&X-Amz-SignedHeaders=host&X-Amz-Expires=3600&X-Amz-Signature=0d7a2c37b437befb8eddbe8171eebc76c3ea507300270133044696a0fa7064ea"
                ]
            },
            "tags": "Science,Technology",
            "comments": [
                {
                    "id": 1,
                    "post_id": 1,
                    "text": "nice photo",
                    "created_at": "2021-09-30T17:59:44.000000Z",
                    "updated_at": "2021-09-30T17:59:44.000000Z",
                    "created_by": 1,
                    "updated_by": 1,
                    "replies": [
                        {
                            "id": 1,
                            "post_comment_id": 1,
                            "text": "πŸ˜πŸ‘",
                            "created_at": "2021-09-30T18:00:01.000000Z",
                            "updated_at": "2021-09-30T18:00:01.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": 1,
                                        "user_id": 1,
                                        "created_at": "2021-09-30T18:00:07.000000Z",
                                        "updated_at": "2021-09-30T18:00:07.000000Z"
                                    }
                                }
                            ]
                        }
                    ],
                    "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_id": 1,
                                "user_id": 1,
                                "created_at": "2021-09-30T17:59:48.000000Z",
                                "updated_at": "2021-09-30T17:59:48.000000Z"
                            }
                        }
                    ]
                }
            ],
            "likes": 0,
            "likedByUsers": [],
            "saves": 0,
            "savedByUsers": [],
            "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-30T17:59:24.000000Z",
            "updated": "1 day ago",
            "updated_at": "2021-09-30T17:59:25.000000Z"
        }
    ]
}

Get Post

GET https://multiply.arbre.in/api/posts/{post_id}

This endpoint will give details of a post

Headers

Name
Type
Description

Accept

string

application/json

Authorization

string

Bearer 1|EMQEUjXq0OoQD6wVBnUd4WMrkcJi8nQF

Last updated

Was this helpful?