Skip to content

Instantly share code, notes, and snippets.

@jspw
Last active October 3, 2023 14:58
Show Gist options
  • Save jspw/6dd78247b66d01b72a88c988c4b546b5 to your computer and use it in GitHub Desktop.
Save jspw/6dd78247b66d01b72a88c988c4b546b5 to your computer and use it in GitHub Desktop.
Api documentation for Paddle Admin Panel Backend Api

API Documnentation

Note : The List api have start and limit query param for pagination and search param where search neede. In article we can have query params like categoryID and tagID to get articels based on categories and tags.

Languages

Get Language List

GET : /languages

Response

[
    {id: 1, code: "en", name: "English"},
    {id: 2, code: "es", name: "Spanish"},
    {id: 3, code: "fr", name: "French"},
    {id: 4, code: "de", name: "German"},
    {id: 5, code: "it", name: "Italian"},
    {id: 6, code: "pt", name: "Portuguese"},
    {id: 7, code: "ru", name: "Russian"},
    {id: 8, code: "zh", name: "Chinese"},
    {id: 9, code: "ja", name: "Japanese"},
    {id: 10, code: "ko", name: "Korean"},
    {id: 11, code: "ar", name: "Arabic"},
    {id: 12, code: "hi", name: "Hindi"},
    {id: 13, code: "bn", name: "Bengali"},
    {id: 14, code: "pa", name: "Punjabi"},
    {id: 15, code: "ms", name: "Malay"},
    {id: 16, code: "ta", name: "Tamil"},
    {id: 17, code: "te", name: "Telugu"},
    {id: 18, code: "mr", name: "Marathi"},
    {id: 19, code: "ur", name: "Urdu"},
    {id: 20, code: "gu", name: "Gujarati"},
    {id: 21, code: "th", name: "Thai"},
    {id: 22, code: "tr", name: "Turkish"},
    {id: 23, code: "vi", name: "Vietnamese"},
    {id: 24, code: "tl", name: "Tagalog"},
    {id: 25, code: "sw", name: "Swahili"},
    {id: 26, code: "nl", name: "Dutch"},
    {id: 27, code: "pl", name: "Polish"},
    {id: 28, code: "uk", name: "Ukrainian"},
    {id: 29, code: "el", name: "Greek"},
    {id: 30, code: "cs", name: "Czech"},
    {id: 31, code: "ro", name: "Romanian"},
    {id: 32, code: "hu", name: "Hungarian"},
    {id: 33, code: "sv", name: "Swedish"},
    {id: 34, code: "fi", name: "Finnish"},
    {id: 35, code: "da", name: "Danish"},
    {id: 36, code: "no", name: "Norwegian"},
    {id: 37, code: "he", name: "Hebrew"},
    {id: 38, code: "ar", name: "Arabic"},
    {id: 39, code: "fa", name: "Persian"},
    {id: 40, code: "ps", name: "Pashto"},
    {id: 41, code: "sd", name: "Sindhi"},
    {id: 42, code: "ne", name: "Nepali"},
    {id: 43, code: "si", name: "Sinhala"},
    {id: 44, code: "ka", name: "Georgian"},
    {id: 45, code: "am", name: "Amharic"},
    {id: 46, code: "ig", name: "Igbo"},
    {id: 47, code: "yo", name: "Yoruba"},
    {id: 48, code: "zu", name: "Zulu"},
    {id: 49, code: "rw", name: "Kinyarwanda"},
    {id: 50, code: "so", name: "Somali"},
    {id: 51, code: "kk", name: "Kazakh"},
    {id: 52, code: "uz", name: "Uzbek"},
    {id: 53, code: "mn", name: "Mongolian"},
    {id: 54, code: "my", name: "Burmese"},
    {id: 55, code: "km", name: "Khmer"},
    {id: 56, code: "lo", name: "Lao"},
    {id: 57, code: "fil", name: "Filipino"},
    {id: 58, code: "ceb", name: "Cebuano"},
    {id: 59, code: "haw", name: "Hawaiian"},
    {id: 60, code: "smo", name: "Samoan"},
    {id: 61, code: "fj", name: "Fijian"},
    {id: 62, code: "to", name: "Tongan"},
    {id: 63, code: "ny", name: "Chichewa"},
    {id: 64, code: "xh", name: "Xhosa"},
    {id: 65, code: "st", name: "Sesotho"},
    {id: 66, code: "tn", name: "Setswana"},
    {id: 67, code: "nr", name: "Ndebele"},
    {id: 68, code: "ss", name: "Swati"},
    {id: 69, code: "zu", name: "Zulu"},
    {id: 70, code: "xh", name: "Xhosa"},
    {id: 71, code: "st", name: "Sesotho"},
    {id: 72, code: "tn", name: "Setswana"},
    {id: 73, code: "nr", name: "Ndebele"},
    {id: 74, code: "ss", name: "Swati"},
    {id: 75, code: "hu", name: "Hausa"},
    {id: 76, code: "yo", name: "Yoruba"},
    {id: 77, code: "ig", name: "Igbo"},
    {id: 78, code: "ha", name: "Hausa"},
    {id: 79, code: "zu", name: "Zulu"},
    {id: 80, code: "xh", name: "Xhosa"},
    {id: 81, code: "st", name: "Sesotho"},
    {id: 82, code: "tn", name: "Setswana"},
    {id: 83, code: "nr", name: "Ndebele"},
    {id: 84, code: "ss", name: "Swati"},
    {id: 85, code: "hu", name: "Hausa"},
    {id: 86, code: "yo", name: "Yoruba"},
    {id: 87, code: "ig", name: "Igbo"},
    {id: 88, code: "ha", name: "Hausa"},
    {id: 89, code: "zu", name: "Zulu"},
    {id: 90, code: "xh", name: "Xhosa"},
    {id: 91, code: "st", name: "Sesotho"},
    {id: 92, code: "tn", name: "Setswana"},
    {id: 93, code: "nr", name: "Ndebele"},
    {id: 94, code: "ss", name: "Swati"},
    {id: 95, code: "hu", name: "Hausa"},
    {id: 96, code: "yo", name: "Yoruba"},
    {id: 97, code: "ig", name: "Igbo"},
    {id: 98, code: "ha", name: "Hausa"},
    {id: 99, code: "zu", name: "Zulu"},
    {id: 100, code: "xh", name: "Xhosa"}
]

Auth

Create User

POST /users

Request Body

{
    "email" : "test@gmail.com",
    "password" : "123456"
}

Login

POST /auth/login

{
    "email" : "test@gmail.com",
    "password" : "123456"
}

Response

{
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY1MTExM2VlMzllZWMyNTNmMDZmNDk3NCIsImlhdCI6MTY5NTYxODE2NywiZXhwIjoxNjk3NDE4MTY3fQ.IRpasGMhA0hUtkpT7EN2ZVZJY1E4qpO-6T_WZ0ko4Os",
    "expiresIn": "500h"
}

SITE

Create SITE

POST /sites

Example

POST localhost:5000/sites

Request Body
{
    "url" : "http://www.facebook.com",
    "logo" : "default-logo.png",
    "favicon" : "favicon.ico",
    "multilingualData" : [
        {
            "language" : "en",
            "name" : "Dhak City Hotel",
            "title" : "Dhak City Hotel",
            "subtitle" : "Subtitle | Dhak City Hotel",
            "description" : "Dhak City Hotel Description"
        }

    ]
}
Response
{
    "url": "http://www.facebook.com",
    "logo": "default-logo.png",
    "favicon": "favicon.ico",
    "multilingualData": [
        {
            "language": "en",
            "name": "Dhak City Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "url": "http://www.facebook.com/en",
            "_id": "65103e7ded9ede81632e79e0"
        }
    ],
    "createDate": "2023-09-24T13:47:05.011Z",
    "__v": 0,
    "id": "65103e7ded9ede81632e79df"
}

Update SITE

PUT /sites/$siteId

Example

PUT localhost:5000/sites/65103e7ded9ede81632e79df

Request Body
{
    "multilingualData" : [
        {
            "language" : "zj",
            "name": "Dhak Ban ssA Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description"

        }
    ]
}
Response
{
    "url": "http://www.facebook.com",
    "logo": "default-logo.png",
    "favicon": "favicon.ico",
    "multilingualData": [
        {
            "language": "en",
            "name": "Dhak City Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "url": "http://www.facebook.com/en",
            "createDate": "2023-09-24T14:19:59.825Z",
            "_id": "65103e7ded9ede81632e79e0"
        },
        {
            "language": "fr",
            "name": "Dhak City A Hotel Changed",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "createDate": "2023-09-24T14:19:59.825Z",
            "_id": "651043d1eee5e1dc139c7fb8"
        },
        {
            "language": "bn",
            "name": "Dhak Ban ssA Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "createDate": "2023-09-24T14:19:59.825Z",
            "_id": "651044bbea892191a1815b74"
        },
        {
            "language": "kn",
            "name": "Dhak Ban ssA Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "createDate": "2023-09-24T14:19:59.825Z",
            "updateDate": "2023-09-24T14:20:01.480Z",
            "_id": "6510456446464ee9514a7140"
        },
        {
            "language": "zj",
            "name": "Dhak Ban ssA Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "url": "http://www.facebook.com/zj",
            "createDate": "2023-09-24T14:57:30.692Z",
            "_id": "65104e642b946db17580298c"
        }
    ],
    "createDate": "2023-09-24T13:47:05.011Z",
    "__v": 0,
    "id": "65103e7ded9ede81632e79df"
}

Get SITE

GET /sites/$siteId

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df

Response
{
    "url": "http://www.facebook.com",
    "logo": "default-logo.png",
    "favicon": "favicon.ico",
    "multilingualData": [
        {
            "language": "en",
            "name": "Dhak City Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "url": "http://www.facebook.com/en",
            "_id": "65103e7ded9ede81632e79e0"
        }
    ],
    "createDate": "2023-09-24T13:47:05.011Z",
    "__v": 0,
    "id": "65103e7ded9ede81632e79df"
}

Delete SITE

DELETE /sites/$siteId

Example

DELETE localhost:5000/sites/65107a372236b2568c3b0923

Response
{
    "url": "http://www.facebook.com",
    "logo": "default-logo.png",
    "favicon": "favicon.ico",
    "multilingualData": [
        {
            "language": "en",
            "name": "Dhak City Hotel",
            "title": "Dhak City Hotel",
            "subtitle": "Subtitle | Dhak City Hotel",
            "description": "Dhak City Hotel Description",
            "url": "http://www.facebook.com/en",
            "_id": "65103e7ded9ede81632e79e0"
        }
    ],
    "createDate": "2023-09-24T13:47:05.011Z",
    "__v": 0,
    "id": "65103e7ded9ede81632e79df"
}

Get SITEs (List)

GET /sites

Example

GET localhost:5000/sites?start=0&limit=3

Response
{
    "total": 4,
    "data": [
        {
            "url": "http://www.facebook.com",
            "logo": "default-logo.png",
            "favicon": "favicon.ico",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "Dhak City Hotel",
                    "title": "Dhak City Hotel",
                    "subtitle": "Subtitle | Dhak City Hotel",
                    "description": "Dhak City Hotel Description",
                    "url": "http://www.facebook.com/en",
                    "createDate": "2023-09-24T14:19:59.825Z",
                    "_id": "65103e7ded9ede81632e79e0"
                },
                {
                    "language": "fr",
                    "name": "Dhak City A Hotel Changed",
                    "title": "Dhak City Hotel",
                    "subtitle": "Subtitle | Dhak City Hotel",
                    "description": "Dhak City Hotel Description",
                    "createDate": "2023-09-24T14:19:59.825Z",
                    "_id": "651043d1eee5e1dc139c7fb8"
                },
                {
                    "language": "bn",
                    "name": "Dhak Ban ssA Hotel",
                    "title": "Dhak City Hotel",
                    "subtitle": "Subtitle | Dhak City Hotel",
                    "description": "Dhak City Hotel Description",
                    "createDate": "2023-09-24T14:19:59.825Z",
                    "_id": "651044bbea892191a1815b74"
                },
                {
                    "language": "kn",
                    "name": "Dhak Ban ssA Hotel",
                    "title": "Dhak City Hotel",
                    "subtitle": "Subtitle | Dhak City Hotel",
                    "description": "Dhak City Hotel Description",
                    "createDate": "2023-09-24T14:19:59.825Z",
                    "updateDate": "2023-09-24T14:20:01.480Z",
                    "_id": "6510456446464ee9514a7140"
                },
                {
                    "language": "zj",
                    "name": "Dhak Ban ssA Hotel",
                    "title": "Dhak City Hotel",
                    "subtitle": "Subtitle | Dhak City Hotel",
                    "description": "Dhak City Hotel Description",
                    "url": "http://www.facebook.com/zj",
                    "createDate": "2023-09-24T14:57:30.692Z",
                    "_id": "65104e642b946db17580298c"
                }
            ],
            "createDate": "2023-09-24T13:47:05.011Z",
            "__v": 0,
            "id": "65103e7ded9ede81632e79df"
        },
        {
            "name": "Holivoo",
            "title": "holivoo.com",
            "subtitle": "SDASDAS Subtitle",
            "url": "URLSSS",
            "description": "No Desciption Idea",
            "multilingualData": [
                {
                    "createDate": "2023-09-24T18:58:05.857Z",
                    "language": "en",
                    "data": {
                        "name": "Holivoo",
                        "title": "holivoo.com",
                        "subtitle": "SDASDAS",
                        "url": "URLSSS",
                        "description": "No Idea"
                    },
                    "_id": "65102c71a7a52802c5db5d21"
                }
            ],
            "createDate": "2023-09-24T12:20:11.668Z",
            "__v": 0,
            "id": "65102c71a7a52802c5db5d20"
        },
        {
            "name": "Holo 2",
            "title": "Hello AL",
            "subtitle": "SDASDAS",
            "url": "URLSSS",
            "description": "No Idea",
            "multilingualData": [
                {
                    "createDate": "2023-09-24T18:58:05.857Z",
                    "language": "en",
                    "data": {
                        "name": "Holo 2",
                        "title": "Hello AL",
                        "subtitle": "SDASDAS",
                        "url": "URLSSS",
                        "description": "No Idea"
                    },
                    "_id": "65100eaddded9efdc77487e8"
                }
            ],
            "createDate": "2023-09-24T10:25:10.864Z",
            "__v": 0,
            "id": "65100eaddded9efdc77487e7"
        }
    ],
    "start": 0,
    "limit": 3
}

Category

Create Category

POST /sites/$siteId/categories

Example

POST localhost:5000/sites/65103e7ded9ede81632e79df/categories

Request Body
{
    "parentId" : "651063f746312dacd829d0d1", // null parent will be the actual parent category
    "multilingualData": [
        {
            "language": "en",
            "name": "Cat1",
            "subtitle": "Page Subtitle",
            "featuredImage": "sss/",
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 8,
    "parent": "651063f746312dacd829d0d1",
    "sharedID": "FACE8",
    "multilingualData": [
        {
            "language": "en",
            "name": "Cat1",
            "subtitle": "Page Subtitle",
            "featuredImage": "sss/",
            "catID": "FACE8EN",
            "description": "Page Description",
            "createDate": "2023-09-24T18:18:40.961Z",
            "_id": "65108287d44c321c9fe18817"
        }
    ],
    "createDate": "2023-09-24T18:18:40.961Z",
    "__v": 0,
    "id": "65108287d44c321c9fe18816"
}

Update Category

PUT /categories/$categoryId

Example

PUT localhost:5000/categories/651064e846312dacd829d0e6

Request Body
{
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page Changed",
            "subtitle": "Page Subtitle Chnaged",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 6,
    "parent": "651063f746312dacd829d0d1",
    "sharedID": "FACE6",
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page Changed",
            "subtitle": "Page Subtitle Chnaged",
            "featuredImage": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "catID": "FACE6EN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "_id": "651064e846312dacd829d0e7",
            "updateDate": "2023-09-24T16:33:55.338Z"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "catID": "FACE6BN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "_id": "651064f346312dacd829d0ea"
        }
    ],
    "createDate": "2023-09-24T16:27:38.760Z",
    "__v": 0,
    "id": "651064e846312dacd829d0e6"
}

Get Category

GET /categories/$categoryId

Example

GET localhost:5000/categories/651064e846312dacd829d0e6

Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 6,
    "parent": "651063f746312dacd829d0d1",
    "sharedID": "FACE6",
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page Changed",
            "subtitle": "Page Subtitle Chnaged",
            "featuredImage": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "catID": "FACE6EN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "updateDate": "2023-09-24T16:33:55.338Z",
            "_id": "651064e846312dacd829d0e7"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "catID": "FACE6BN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "_id": "651064f346312dacd829d0ea"
        }
    ],
    "createDate": "2023-09-24T16:27:38.760Z",
    "__v": 0,
    "id": "651064e846312dacd829d0e6"
}

Delete Category

DELETE /categories/$categoryId

Example

DELETE localhost:5000/categories/651064e846312dacd829d0e6

Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 6,
    "parent": "651063f746312dacd829d0d1",
    "sharedID": "FACE6",
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page Changed",
            "subtitle": "Page Subtitle Chnaged",
            "featuredImage": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "catID": "FACE6EN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "updateDate": "2023-09-24T16:33:55.338Z",
            "_id": "651064e846312dacd829d0e7"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "catID": "FACE6BN",
            "description": "Page Description",
            "createDate": "2023-09-24T16:27:38.760Z",
            "_id": "651064f346312dacd829d0ea"
        }
    ],
    "createDate": "2023-09-24T16:27:38.760Z",
    "__v": 0,
    "id": "651064e846312dacd829d0e6"
}

Get Categories (List)

GET /sites/$siteId/categories

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df/categories

Response
{
    "total": 6,
    "data": [
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 7,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE7",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "Cat1",
                    "subtitle": "Page Subtitle",
                    "featuredImage": "",
                    "catID": "FACE7EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T18:18:40.961Z",
                    "_id": "6510827ed44c321c9fe18812"
                }
            ],
            "createDate": "2023-09-24T18:18:40.961Z",
            "__v": 0,
            "id": "6510827ed44c321c9fe18811"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 8,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE8",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "Cat1",
                    "subtitle": "Page Subtitle",
                    "featuredImage": "sss/",
                    "catID": "FACE8EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T18:18:40.961Z",
                    "_id": "65108287d44c321c9fe18817"
                }
            ],
            "createDate": "2023-09-24T18:18:40.961Z",
            "__v": 0,
            "id": "65108287d44c321c9fe18816"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 3,
            "sharedID": "FACE3",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE3EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651063c446312dacd829d0cc"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE3BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651063c446312dacd829d0cd"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651063c446312dacd829d0cb"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 4,
            "sharedID": "FACE4",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE4EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:31:04.520Z",
                    "_id": "651063f746312dacd829d0d2"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE4BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "6510644846312dacd829d0d6"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651063f746312dacd829d0d1"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 5,
            "sharedID": "FACE5",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE5EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:32:11.468Z",
                    "_id": "6510647e46312dacd829d0dd"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE5BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "6510648b46312dacd829d0e0"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "6510647e46312dacd829d0dc"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 6,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE6",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE6EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:33:55.338Z",
                    "_id": "651064e846312dacd829d0e7"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE6BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651064f346312dacd829d0ea"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651064e846312dacd829d0e6"
        }
    ],
    "start": 0,
    "limit": 20
}

Get Categories By Parent Category (List)

GET /categories/$categoryId/categories/

Example

GET localhost:5000/categories/651063f746312dacd829d0d1/categories/

Response
{
    "total": 3,
    "data": [
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 7,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE7",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "Cat1",
                    "subtitle": "Page Subtitle",
                    "featuredImage": "",
                    "catID": "FACE7EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T18:18:40.961Z",
                    "_id": "6510827ed44c321c9fe18812"
                }
            ],
            "createDate": "2023-09-24T18:18:40.961Z",
            "__v": 0,
            "id": "6510827ed44c321c9fe18811"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 8,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE8",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "Cat1",
                    "subtitle": "Page Subtitle",
                    "featuredImage": "sss/",
                    "catID": "FACE8EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T18:18:40.961Z",
                    "_id": "65108287d44c321c9fe18817"
                }
            ],
            "createDate": "2023-09-24T18:18:40.961Z",
            "__v": 0,
            "id": "65108287d44c321c9fe18816"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 6,
            "parent": "651063f746312dacd829d0d1",
            "sharedID": "FACE6",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE6EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:33:55.338Z",
                    "_id": "651064e846312dacd829d0e7"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE6BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651064f346312dacd829d0ea"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651064e846312dacd829d0e6"
        }
    ],
    "start": 0,
    "limit": 20
}

Get Parent Categories (List)

GET /categories/parents

Example

GET localhost:5000/categories/parents

Response
{
    "total": 6,
    "data": [
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 3,
            "sharedID": "FACE3",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE3EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651063c446312dacd829d0cc"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE3BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "651063c446312dacd829d0cd"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651063c446312dacd829d0cb"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 4,
            "sharedID": "FACE4",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE4EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:31:04.520Z",
                    "_id": "651063f746312dacd829d0d2"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE4BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "6510644846312dacd829d0d6"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "651063f746312dacd829d0d1"
        },
        {
            "site": "65103e7ded9ede81632e79df",
            "count": 5,
            "sharedID": "FACE5",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page Changed",
                    "subtitle": "Page Subtitle Chnaged",
                    "featuredImage": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "catID": "FACE5EN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "updateDate": "2023-09-24T16:32:11.468Z",
                    "_id": "6510647e46312dacd829d0dd"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "catID": "FACE5BN",
                    "description": "Page Description",
                    "createDate": "2023-09-24T16:27:38.760Z",
                    "_id": "6510648b46312dacd829d0e0"
                }
            ],
            "createDate": "2023-09-24T16:27:38.760Z",
            "__v": 0,
            "id": "6510647e46312dacd829d0dc"
        },
        {
            "name": "Holo",
            "title": "Hello AL",
            "subtitle": "SDASDAS",
            "url": "URLSSS",
            "description": "No Idea",
            "multilingualData": [
                {
                    "createDate": "2023-09-24T18:55:37.293Z",
                    "language": "en",
                    "data": {
                        "name": "Holo",
                        "title": "Hello AL",
                        "subtitle": "SDASDAS",
                        "url": "URLSSS",
                        "description": "No Idea"
                    },
                    "_id": "651005aa056347220ab83f00"
                }
            ],
            "createDate": "2023-09-24T09:47:13.055Z",
            "__v": 0,
            "id": "651005aa056347220ab83eff"
        },
        {
            "name": "Holo",
            "title": "Hello AL",
            "subtitle": "SDASDAS",
            "url": "URLSSS",
            "description": "No Idea",
            "createDate": "2023-09-24T09:42:50.657Z",
            "multilingualData": [],
            "__v": 0,
            "id": "6510053c57684db0fca41fdb"
        },
        {
            "name": "Holo",
            "title": "Hello AL",
            "subtitle": "Sub title changed!",
            "url": "URLSSS",
            "description": "No Idea",
            "createDate": "2023-09-24T09:19:35.342Z",
            "__v": 0,
            "multilingualData": [],
            "id": "650fffb18125db34c9daf2e5"
        }
    ],
    "start": 0,
    "limit": 20
}

TAG

Create TAG

POST /sites/$siteId/tags

Example

POST localhost:5000/sites/65103e7ded9ede81632e79df/tags

Request Body
{
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65100eaddded9efdc77487e7",
    "count": 4,
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "tagID": "NEWPAGE2EN4",
            "description": "Page Description",
            "createDate": "2023-09-24T15:44:38.943Z",
            "_id": "6510596a891b1b0774765f08"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "tagID": "NEWPAGE2BN4",
            "description": "Page Description",
            "createDate": "2023-09-24T15:44:38.943Z",
            "_id": "6510596a891b1b0774765f09"
        }
    ],
    "createDate": "2023-09-24T15:44:38.943Z",
    "__v": 0,
    "id": "6510596a891b1b0774765f07"
}

Update TAG

PUT /tags/$tagId

Example

PUT localhost:5000/tags/65107a372236b2568c3b0923

Request Body
{
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page Changed",
            "subtitle": "Page Subtitle Chnaged",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        },
        {
            "language": "uk",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65100eaddded9efdc77487e7",
    "count": 4,
    "multilingualData": [
        {
            "language": "en",
            "name": "New Page 2",
            "subtitle": "Page Subtitle Chnaged",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "tagID": "NEWPAGE2EN4",
            "description": "Page Description",
            "createDate": "2023-09-24T15:44:38.943Z",
            "updateDate": "2023-09-24T15:48:47.674Z",
            "_id": "6510596a891b1b0774765f08"
        },
        {
            "language": "bn",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "tagID": "NEWPAGE2BN4",
            "description": "Page Description",
            "createDate": "2023-09-24T15:44:38.943Z",
            "updateDate": "2023-09-24T15:48:47.674Z",
            "_id": "6510596a891b1b0774765f09"
        },
        {
            "language": "uk",
            "name": "New Page 2",
            "subtitle": "Page Subtitle",
            "image": {
                "name": "New Page 2 image",
                "relativePath": "sdsdsd/sss/",
                "type": "image"
            },
            "tagID": "NEWPAGE2UK4",
            "description": "Page Description",
            "createDate": "2023-09-24T15:44:38.943Z",
            "_id": "65105a5f891b1b0774765f14"
        }
    ],
    "createDate": "2023-09-24T15:44:38.943Z",
    "__v": 0,
    "id": "6510596a891b1b0774765f07"
}

Get TAG

GET /tags/$tagId

Example

GET localhost:5000/tags/651013426ee23bc8ff08160f

Response
{
    "site": "65100eaddded9efdc77487e7",
    "multilingualData": [
        {
            "language": "en",
            "data": {
                "name": "New Page 2",
                "subtitle": "Page Subtitle",
                "url": "facebook.com",
                "image": {
                    "name": "New Page 2 image",
                    "relativePath": "sdsdsd/sss/",
                    "type": "image"
                },
                "description": "Page Description",
                "tagID": "101"
            },
            "_id": "651013426ee23bc8ff081610"
        }
    ],
    "createDate": "2023-09-24T10:45:14.015Z",
    "__v": 0,
    "id": "651013426ee23bc8ff08160f"
}

Delete TAG

DELETE /tags/$tagId

Example

DELETE localhost:5000/tags/65107a372236b2568c3b0923

Response
{
    "site": "65100eaddded9efdc77487e7",
    "multilingualData": [
        {
            "language": "en",
            "data": {
                "name": "New Page 2",
                "subtitle": "Page Subtitle",
                "url": "facebook.com",
                "image": {
                    "name": "New Page 2 image",
                    "relativePath": "sdsdsd/sss/",
                    "type": "image"
                },
                "description": "Page Description",
                "tagID": "101"
            },
            "_id": "651013426ee23bc8ff081610"
        }
    ],
    "createDate": "2023-09-24T10:45:14.015Z",
    "__v": 0,
    "id": "651013426ee23bc8ff08160f"
}

Get TAGs (List)

GET /sites/$siteId/tags

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df/tags`

Response
{
    "total": 5,
    "data": [
        {
            "site": "65100eaddded9efdc77487e7",
            "count": 4,
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle Chnaged",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2EN4",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:44:38.943Z",
                    "updateDate": "2023-09-24T15:48:47.674Z",
                    "_id": "6510596a891b1b0774765f08"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2BN4",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:44:38.943Z",
                    "updateDate": "2023-09-24T15:48:47.674Z",
                    "_id": "6510596a891b1b0774765f09"
                },
                {
                    "language": "uk",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2UK4",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:44:38.943Z",
                    "_id": "65105a5f891b1b0774765f14"
                }
            ],
            "createDate": "2023-09-24T15:44:38.943Z",
            "__v": 0,
            "id": "6510596a891b1b0774765f07"
        },
        {
            "site": "65100eaddded9efdc77487e7",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2EN2",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:19:34.176Z",
                    "_id": "6510539d1c7e11fa5b2aecac"
                }
            ],
            "createDate": "2023-09-24T15:19:34.176Z",
            "__v": 0,
            "id": "6510539d1c7e11fa5b2aecab"
        },
        {
            "site": "65100eaddded9efdc77487e7",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2EN3",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:19:34.176Z",
                    "_id": "651053bc1c7e11fa5b2aecb0"
                },
                {
                    "language": "bn",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEWPAGE2BN3",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:19:34.176Z",
                    "_id": "651053bc1c7e11fa5b2aecb1"
                }
            ],
            "createDate": "2023-09-24T15:19:34.176Z",
            "__v": 0,
            "id": "651053bc1c7e11fa5b2aecaf"
        },
        {
            "site": "65100eaddded9efdc77487e7",
            "multilingualData": [
                {
                    "language": "en",
                    "name": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "image": {
                        "name": "New Page 2 image",
                        "relativePath": "sdsdsd/sss/",
                        "type": "image"
                    },
                    "tagID": "NEW PAGE 2EN1",
                    "description": "Page Description",
                    "createDate": "2023-09-24T15:18:00.545Z",
                    "_id": "6510532a6f4f90de37f6778c"
                }
            ],
            "createDate": "2023-09-24T15:18:00.545Z",
            "__v": 0,
            "id": "6510532a6f4f90de37f6778b"
        },
        {
            "site": "65100eaddded9efdc77487e7",
            "multilingualData": [
                {
                    "createDate": "2023-09-24T18:58:05.893Z",
                    "language": "en",
                    "data": {
                        "name": "New Page 2",
                        "subtitle": "Page Subtitle",
                        "url": "facebook.com",
                        "image": {
                            "name": "New Page 2 image",
                            "relativePath": "sdsdsd/sss/",
                            "type": "image"
                        },
                        "description": "Page Description",
                        "tagID": "101"
                    },
                    "_id": "651013426ee23bc8ff081610"
                }
            ],
            "createDate": "2023-09-24T10:45:14.015Z",
            "__v": 0,
            "id": "651013426ee23bc8ff08160f"
        }
    ],
    "start": 0,
    "limit": 20
}

PAGE

Create PAGE

POST /sites/$siteId/pages

Example

POST localhost:5000/sites/65103e7ded9ede81632e79df/pages

Request Body
{
    "multilingualData": [
        {
            "language": "en",
            "title": "New Page 2",
            "subtitle": "Page Subtitle",
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "multilingualData": [
        {
            "language": "en",
            "title": "New Page 2",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/en/New-Page-2",
            "description": "Page Description",
            "createDate": "2023-09-24T14:48:32.690Z",
            "_id": "65104c4279328f58d65da5b2"
        }
    ],
    "createDate": "2023-09-24T14:48:32.690Z",
    "__v": 0,
    "id": "65104c4279328f58d65da5b1"
}

Update PAGE

PUT /pages/$pageId

Example

PUT localhost:5000/pages/65107a372236b2568c3b0923

Request Body
{
    "multilingualData": [
        {
            "language": "bk",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "description": "Page Description"
        }
    ]
}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "multilingualData": [
        {
            "language": "en",
            "title": "New Page 2",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/en/New-Page-2",
            "description": "Page Description",
            "createDate": "2023-09-24T14:48:32.690Z",
            "_id": "65104c4279328f58d65da5b2"
        },
        {
            "language": "fr",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "description": "Page Description",
            "createDate": "2023-09-24T14:54:23.240Z",
            "updateDate": "2023-09-24T14:54:34.338Z",
            "_id": "65104da261a01a1996a87cf1"
        },
        {
            "language": "bk",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/bk/New-Page-FR",
            "description": "Page Description",
            "createDate": "2023-09-24T14:58:53.599Z",
            "_id": "65104eb06590815fb3790980"
        }
    ],
    "createDate": "2023-09-24T14:48:32.690Z",
    "__v": 0,
    "id": "65104c4279328f58d65da5b1"
}

Get PAGE

GET /pages/$pageId

Example

GET localhost:5000/pages/65104c4279328f58d65da5b1

Response
{
    "site": "65103e7ded9ede81632e79df",
    "multilingualData": [
        {
            "language": "en",
            "title": "New Page 2",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/en/New-Page-2",
            "description": "Page Description",
            "createDate": "2023-09-24T14:48:32.690Z",
            "_id": "65104c4279328f58d65da5b2"
        },
        {
            "language": "fr",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "description": "Page Description",
            "createDate": "2023-09-24T14:54:23.240Z",
            "updateDate": "2023-09-24T14:54:34.338Z",
            "_id": "65104da261a01a1996a87cf1"
        },
        {
            "language": "bk",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/bk/New-Page-FR",
            "description": "Page Description",
            "createDate": "2023-09-24T14:58:53.599Z",
            "_id": "65104eb06590815fb3790980"
        }
    ],
    "createDate": "2023-09-24T14:48:32.690Z",
    "__v": 0,
    "id": "65104c4279328f58d65da5b1"
}

Delete PAGE

DELETE /pages/$pageId

Example

DELETE localhost:5000/pages/65107a372236b2568c3b0923

Response
{
    "site": "65103e7ded9ede81632e79df",
    "multilingualData": [
        {
            "language": "en",
            "title": "New Page 2",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/en/New-Page-2",
            "description": "Page Description",
            "createDate": "2023-09-24T14:48:32.690Z",
            "_id": "65104c4279328f58d65da5b2"
        },
        {
            "language": "fr",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "description": "Page Description",
            "createDate": "2023-09-24T14:54:23.240Z",
            "updateDate": "2023-09-24T14:54:34.338Z",
            "_id": "65104da261a01a1996a87cf1"
        },
        {
            "language": "bk",
            "title": "New Page FR",
            "subtitle": "Page Subtitle",
            "url": "http://www.facebook.com/bk/New-Page-FR",
            "description": "Page Description",
            "createDate": "2023-09-24T14:58:53.599Z",
            "_id": "65104eb06590815fb3790980"
        }
    ],
    "createDate": "2023-09-24T14:48:32.690Z",
    "__v": 0,
    "id": "65104c4279328f58d65da5b1"
}

Get PAGEs (List)

GET /sites/$siteId/pages

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df/pages`

Response
{
    "total": 1,
    "data": [
        {
            "site": "65103e7ded9ede81632e79df",
            "multilingualData": [
                {
                    "language": "en",
                    "title": "New Page 2",
                    "subtitle": "Page Subtitle",
                    "url": "http://www.facebook.com/en/New-Page-2",
                    "description": "Page Description",
                    "createDate": "2023-09-24T14:48:32.690Z",
                    "_id": "65104c4279328f58d65da5b2"
                },
                {
                    "language": "fr",
                    "title": "New Page FR",
                    "subtitle": "Page Subtitle",
                    "description": "Page Description",
                    "createDate": "2023-09-24T14:54:23.240Z",
                    "updateDate": "2023-09-24T14:54:34.338Z",
                    "_id": "65104da261a01a1996a87cf1"
                },
                {
                    "language": "bk",
                    "title": "New Page FR",
                    "subtitle": "Page Subtitle",
                    "url": "http://www.facebook.com/bk/New-Page-FR",
                    "description": "Page Description",
                    "createDate": "2023-09-24T14:58:53.599Z",
                    "_id": "65104eb06590815fb3790980"
                }
            ],
            "createDate": "2023-09-24T14:48:32.690Z",
            "__v": 0,
            "id": "65104c4279328f58d65da5b1"
        }
    ],
    "start": 0,
    "limit": 20
}

Article

Create Article

POST /sites/$siteId/articles

Example

POST localhost:5000/sites/65103e7ded9ede81632e79df/articles

Request Body
{
    "publishDate" : "27-09-2025",
    "multilingualData": [
        {
            "language": "en",
            "title" : "How to integrate API 2",
            "featuredImage" : "featuredImage",
            "mainSubtitle" : "mainSubtitle",
            "mainParagraph" : "mainParagraph",
            "categoryIDs" : [
                "FACE6EN"
            ],
            "tagIDs" : ["NEWPAGE2UK4"]

        }
    ]
}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 5,
    "publishDate": "27-09-2025",
    "isPublished": false,
    "multilingualData": [
        {
            "language": "en",
            "title": "How to integrate API 2",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "artID": "FACE5EN",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "createDate": "2023-09-24T18:03:12.783Z",
            "meta": [],
            "_id": "65107a372236b2568c3b0924"
        }
    ],
    "createDate": "2023-09-24T18:03:12.783Z",
    "__v": 0,
    "id": "65107a372236b2568c3b0923"
}

Update Article

PUT /articles/$articleId

Example

PUT localhost:5000/articles/65107a372236b2568c3b0923

Request Body
{
    "isPublished" : true,
    "multilingualData" : [
        {
            "language": "bn",
            "title": "How to integrate API Bangla Updated",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "meta": 
                {
                    "subtitle1" : "heello1",
                    "paragraph" : "Pare"

                }
            
        }
    ]

}
Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 5,
    "publishDate": "27-09-2025",
    "isPublished": true,
    "multilingualData": [
        {
            "language": "bn",
            "title": "How to integrate API Bangla Updated",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "artID": "FACE5BN",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "createDate": "2023-09-24T18:18:40.946Z",
            "updateDate": "2023-09-24T18:19:04.792Z",
            "meta": {
                "subtitle1": "heello1",
                "paragraph": "Pare"
            },
            "_id": "65107d98d44c321c9fe1880c"
        },
        {
            "language": "fn",
            "title": "How to integrate API REACT",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "artID": "FACE5FN",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "createDate": "2023-09-24T18:18:40.946Z",
            "updateDate": "2023-09-24T18:19:04.792Z",
            "meta": {
                "subtitle1": "heello1",
                "paragraph": "Pare"
            },
            "_id": "65107d82d44c321c9fe18803"
        }
    ],
    "createDate": "2023-09-24T18:03:12.783Z",
    "__v": 0,
    "updateDate": "2023-09-24T18:10:54.545Z",
    "id": "65107a372236b2568c3b0923"
}

Get Article

GET /articles/$articleId

Example

GET localhost:5000/articles/65107a372236b2568c3b0923

Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 5,
    "publishDate": "27-09-2025",
    "isPublished": false,
    "multilingualData": [
        {
            "language": "en",
            "title": "How to integrate API 2",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "artID": "FACE5EN",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "createDate": "2023-09-24T18:03:12.783Z",
            "meta": [],
            "_id": "65107a372236b2568c3b0924"
        }
    ],
    "createDate": "2023-09-24T18:03:12.783Z",
    "__v": 0,
    "id": "65107a372236b2568c3b0923"
}

Delete Article

DELETE /articles/$articleId

Example

DELETE localhost:5000/articles/65107a372236b2568c3b0923

Response
{
    "site": "65103e7ded9ede81632e79df",
    "count": 5,
    "publishDate": "27-09-2025",
    "isPublished": false,
    "multilingualData": [
        {
            "language": "en",
            "title": "How to integrate API 2",
            "featuredImage": "featuredImage",
            "mainSubtitle": "mainSubtitle",
            "mainParagraph": "mainParagraph",
            "artID": "FACE5EN",
            "isPublished": false,
            "categoryIDs": [
                "FACE6EN"
            ],
            "tagIDs": [
                "NEWPAGE2UK4"
            ],
            "createDate": "2023-09-24T18:03:12.783Z",
            "meta": [],
            "_id": "65107a372236b2568c3b0924"
        }
    ],
    "createDate": "2023-09-24T18:03:12.783Z",
    "__v": 0,
    "id": "65107a372236b2568c3b0923"
}

Get Articles (List)

GET /sites/$siteId/articles

Query Params : publishDate=DD-mm-yyyy

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df/articles?publishDate=23-09-2023`

Response
{
    "total": 16,
    "data": [
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 21,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "1 How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS21EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6FN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-10-03T08:14:37.099Z",
                    "meta": {
                        "subtitle1": "asfdasdassad",
                        "imageSource1": "image from google",
                        "image": "www.weee.com/image/01"
                    },
                    "_id": "651bce1d3334ddb62246adc4"
                }
            ],
            "createDate": "2023-10-03T08:14:37.099Z",
            "__v": 0,
            "id": "651bce1d3334ddb62246adc3"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 9,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS9RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518531797785050813a5052"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS9JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518531797785050813a5053"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS9LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518531797785050813a5054"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS9ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518531797785050813a5055"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518531797785050813a5051"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 10,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS10RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532e97785050813a506b"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS10JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532e97785050813a506c"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS10LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532e97785050813a506d"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS10ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532e97785050813a506e"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518532e97785050813a506a"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 11,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS11RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532f97785050813a5074"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS11JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532f97785050813a5075"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS11LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532f97785050813a5076"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS11ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518532f97785050813a5077"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518532f97785050813a5073"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 12,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS12RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533297785050813a507d"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS12JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533297785050813a507e"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS12LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533297785050813a507f"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS12ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533297785050813a5080"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518533297785050813a507c"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 13,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS13RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533397785050813a5086"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS13JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533397785050813a5087"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS13LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533397785050813a5088"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS13ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533397785050813a5089"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518533397785050813a5085"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 14,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS14RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533597785050813a508f"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS14JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533597785050813a5090"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS14LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533597785050813a5091"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS14ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533597785050813a5092"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518533597785050813a508e"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 15,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS15RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533797785050813a5098"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS15JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533797785050813a5099"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS15LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533797785050813a509a"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS15ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533797785050813a509b"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518533797785050813a5097"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 16,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "ru",
                    "title": "How to integrate API 3",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS16RU",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533897785050813a50a1"
                },
                {
                    "language": "ja",
                    "title": "How to integrate API 4",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS16JA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533897785050813a50a2"
                },
                {
                    "language": "lta",
                    "title": "How to integrate API 5",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS16LTA",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533897785050813a50a3"
                },
                {
                    "language": "id",
                    "title": "How to integrate API 6",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS16ID",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T15:25:31.156Z",
                    "_id": "6518533897785050813a50a4"
                }
            ],
            "createDate": "2023-09-30T15:25:31.156Z",
            "__v": 0,
            "id": "6518533897785050813a50a0"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 0,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS0EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181c69ff55a87d90cd9b5b"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181c69ff55a87d90cd9b5a"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 1,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS1EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181cd5ff55a87d90cd9b6b"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181cd5ff55a87d90cd9b6a"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 2,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS2EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181ce6ff55a87d90cd9b71"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181ce6ff55a87d90cd9b70"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 3,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS3EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181ce8ff55a87d90cd9b77"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181ce8ff55a87d90cd9b76"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 4,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS4EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181ceaff55a87d90cd9b7d"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181ceaff55a87d90cd9b7c"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 5,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "en",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS5EN",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181cebff55a87d90cd9b83"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181cebff55a87d90cd9b82"
        },
        {
            "site": "65181c3cff55a87d90cd9b54",
            "count": 6,
            "publishDate": "27-09-2025",
            "isPublished": false,
            "multilingualData": [
                {
                    "language": "mr",
                    "title": "How to integrate API 2",
                    "featuredImage": "featuredImage",
                    "mainSubtitle": "mainSubtitle",
                    "mainParagraph": "mainParagraph",
                    "artID": "NEWS6MR",
                    "isPublished": false,
                    "categoryIDs": [
                        "FACE6EN"
                    ],
                    "tagIDs": [
                        "NEWPAGE2UK4"
                    ],
                    "createDate": "2023-09-30T12:11:40.516Z",
                    "_id": "65181e62ff55a87d90cd9b8d"
                }
            ],
            "createDate": "2023-09-30T12:11:40.516Z",
            "__v": 0,
            "id": "65181e62ff55a87d90cd9b8c"
        }
    ],
    "start": 0,
    "limit": 20
}

Image

Upload Image

POST /sites/$siteId/files

Example

POST localhost:5000/sites/65100eaddded9efdc77487e7/files

Request Body (form-data)
{
    "file" : FILE
}
Response
{
    "site": "65100eaddded9efdc77487e7",
    "originalName": "Screenshot 2023-08-23 213732",
    "name": "screenshot-2023-08-23-213732-1695555588075-565876064.png",
    "type": "image",
    "mimetype": "image/png",
    "url_location": "resource/uploads",
    "local_location": "C:\\Users\\mhshi\\Documents\\code\\upwork-clients\\paddle/resource/uploads",
    "extension": "png",
    "size": 713374,
    "createdAt": "2023-09-24T11:39:12.074Z",
    "__v": 0,
    "id": "6510200464f0d0968eaaa25e"
}

So the image url will be $base_url/url_location/name

Delete Image

DELETE /files/$articleId

Example

DELETE localhost:5000/files/65107a372236b2568c3b0923

Get Images (List)

GET /sites/$siteId/files

Example

GET localhost:5000/sites/65103e7ded9ede81632e79df/files`

Response
{
    "total": 1,
    "data": [
        {
            "site": "65100eaddded9efdc77487e7",
            "originalName": "Screenshot 2023-08-23 213732",
            "name": "screenshot-2023-08-23-213732-1695555588075-565876064.png",
            "type": "image",
            "mimetype": "image/png",
            "url_location": "resource/uploads",
            "local_location": "C:\\Users\\mhshi\\Documents\\code\\upwork-clients\\paddle/resource/uploads",
            "extension": "png",
            "size": 713374,
            "createdAt": "2023-09-24T11:39:12.074Z",
            "__v": 0,
            "id": "6510200464f0d0968eaaa25e"
        }
    ],
    "start": 0,
    "limit": 20
}
const articleSchema = new Schema({
id: {
type: Schema.Types.ObjectId
},
site: {
type: Schema.Types.ObjectId,
ref: "Site",
required: true
},
count: {
type: Schema.Types.Number,
required: true
},
publishDate: {
type: Schema.Types.String,
},
isPublished: {
type: Schema.Types.Boolean,
default: false
},
multilingualData: [
{
language: {
type: Schema.Types.String,
required: true,
},
title: {
type: Schema.Types.String,
required: true,
},
featuredImage: {
type: Schema.Types.String
},
mainSubtitle: {
type: Schema.Types.String,
required: false,
},
mainParagraph: {
type: Schema.Types.String,
required: false,
},
artID: {
type: Schema.Types.String,
required: true,
},
publishDate: {
type: Schema.Types.String,
},
isPublished: {
type: Schema.Types.Boolean,
default: false
},
categoryIDs: [
Schema.Types.String
],
tagIDs: [
Schema.Types.String
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
},
meta: Schema.Types.Mixed
}
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
});
const categorySchema = new Schema({
id: {
type: Schema.Types.ObjectId
},
site: {
type: Schema.Types.ObjectId,
ref: "Site",
required: true
},
count: {
type: Schema.Types.Number,
required: true
},
parent: {
type: Schema.Types.ObjectId,
ref: "Category",
},
sharedID: {
type: Schema.Types.String,
required: true,
},
multilingualData: [
{
language: {
type: Schema.Types.String,
required: true
},
name: {
type: Schema.Types.String,
required: true,
},
subtitle: {
type: Schema.Types.String,
required: false,
},
featuredImage: {
type: Schema.Types.Mixed
},
catID: {
type: Schema.Types.String,
required: true,
},
description: {
type: Schema.Types.String,
required: false,
},
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date,
required: false
}
}
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
});
const fileSchema = new Schema({
id: {
type: Schema.Types.ObjectId,
allowNull: false,
primaryKey: true,
},
site : {
type: Schema.Types.ObjectId,
ref: "Site",
required: true
},
imgID : {
type: Schema.Types.String,
required: false,
},
originalName: {
type: Schema.Types.String,
},
name: {
type: Schema.Types.String,
required: true,
unique: true,
},
type: {
type: Schema.Types.String,
required: true,
},
mimetype: {
type: Schema.Types.String,
},
url_location: {
type: Schema.Types.String,
required: true,
},
local_location: {
type: Schema.Types.String,
},
extension: {
type: Schema.Types.String,
},
size: {
type: Schema.Types.Number,
required: true,
},
createdAt: {
type: Schema.Types.Date,
default: Date.now(),
},
updatedAt: {
type: Schema.Types.Date,
},
});
const pageSchema = new Schema({
id: {
type: Schema.Types.ObjectId
},
site: {
type: Schema.Types.ObjectId,
ref: "Site",
required: true
},
multilingualData: [
{
language: {
type: Schema.Types.String,
required: true
},
title: {
type: Schema.Types.String,
required: true,
},
subtitle: {
type: Schema.Types.String,
required: false,
},
url: {
type: Schema.Types.String,
required: true,
},
description: {
type: Schema.Types.String,
required: false,
},
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date,
required: false
}
}
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
});
const siteSchema = new Schema({
id: {
type: Schema.Types.ObjectId
},
url: {
type: Schema.Types.String,
required: true,
},
logo: {
type: Schema.Types.String,
required: false,
},
favicon: {
type: Schema.Types.String,
required: false,
},
multilingualData: [
{
language: Schema.Types.String,
name: {
type: Schema.Types.String,
required: false
},
title: {
type: Schema.Types.String,
required: false
},
subtitle: {
type: Schema.Types.String,
required: false
},
description: {
type: Schema.Types.String,
required: false
},
url: {
type: Schema.Types.String,
required: true
},
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
}
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
});
const tagSchema = new Schema({
id: {
type: Schema.Types.ObjectId
},
site: {
type: Schema.Types.ObjectId,
ref: "Site",
required: true
},
count: {
type: Schema.Types.Number,
required: true
},
multilingualData: [
{
language: {
type: Schema.Types.String,
required: true
},
name: {
type: Schema.Types.String,
required: true,
},
subtitle: {
type: Schema.Types.String,
required: false,
},
image: {
type: Schema.Types.Mixed
},
tagID: {
type: Schema.Types.String,
required: true,
},
description: {
type: Schema.Types.String,
required: false,
},
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date,
required: false
}
}
],
createDate: {
type: Schema.Types.Date,
default: Date.now()
},
updateDate: {
type: Schema.Types.Date
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment