URL: v3/api/article/test-article

Method: GET

Query Parameters

Parameter Type Possible Values Required/Optional Description
is_comment_enabled boolean 0,1 Required If value is 1 then user can comment on the Article. If value is 0 then user can’t comment on the Article.

 

Response:

{

   "success": true,

   "data": {
        "article": {
            "id": 80,
            "name": "Test Article",
            "slug": "test-article",
            "description": "Test",
            "status": 0,
            "type": 1,
            "publish_time": "2021-02-01 09:39:45",
            "created_at": "2021-02-01 09:40:28",
            "updated_at": "2021-02-01 09:40:28",
            "template": "",
            "seo_title": "Test Article",
            "meta_description": "Test...",
            "visible_to": "all_users",
            "author": 1,
            "is_comment_enabled": 1,
            "categories": [
                {
                    "id": 6,
                    "name": "Test category",
                    "slug": "test-category",
                    "pivot": {
                        "article_id": 80,
                        "category_id": 6
                    }
                }
            ],
            "tags": [
                {
                    "id": 2,
                    "name": "Testing second tag",
                    "pivot": {
                        "article_id": 80,
                        "tag_id": 2
                    }
                }
            ]
        },
        "comments": {
            "current_page": 1,
            "data": [],
            "first_page_url": "http://localhost/faveo-helpdesk/public/v3/api/article/test-article?page=1",
            "from": null,
            "last_page": 1,
            "last_page_url": "http://localhost/faveo-helpdesk/public/v3/api/article/test-article?page=1",
            "next_page_url": null,
            "path": "http://localhost/faveo-helpdesk/public/v3/api/article/test-article",
            "per_page": 10,
            "prev_page_url": null,
            "to": null,
            "total": 0
        }
    }
}