Skip to content

Zone API

atsanan edited this page Oct 18, 2018 · 9 revisions

6. Zone type

[x] 6.1 Get data Zone type list

POST /api/v1/zonetype?page=0&limit=10

Note
0 World, 1 InMall, 2 InMall Floor, 3 InMall Shop

Query parameters:

Field Description Optional Default
page Current page of zone type list Yes 0
limit Maximum page of zone type list Yes 10

Returns:

{
    "data": {
        "pageIndex": 0,
        "pageLimit": 10,
        "pages": 1,
        "paging": {
            "next": "",
            "previous": ""
        },
        "zoneTypes": [
            {
                "_id": "5bb7582acf7ae9e79e22de48",
                "created_at": "2018-08-29T11:22:16.859Z",
                "isActive": true,
                "updated_at": "2018-08-29T11:47:17.098Z",
                "zoneTypeName": {
                    "chi1": "World",
                    "chi2": "World",
                    "eng": "World",
                    "thai": "World"
                }
            },
            {
                "_id": "5bbe6497fe13590c8c003742",
                "created_at": "2018-10-10T20:44:06Z",
                "isActive": true,
                "updated_at": "2018-10-10T20:44:06Z",
                "zoneTypeName": {
                    "chi1": "InMall",
                    "chi2": "InMall",
                    "eng": "InMall",
                    "thai": "InMall"
                }
            },
            {
                "_id": "5bc8415d6a10e0dca47124aa",
                "created_at": "2018-10-18T20:44:06Z",
                "isActive": true,
                "updated_at": "2018-10-18T20:44:06Z",
                "zoneTypeName": {
                    "chi1": "InMall Floor",
                    "chi2": "InMall Floor ",
                    "eng": "InMall Floor",
                    "thai": "InMall Floor"
                }
            },
            {
                "_id": "5bc842536a10e0dca471301f",
                "created_at": "2018-10-18T20:44:06Z",
                "isActive": true,
                "updated_at": "2018-10-18T20:44:06Z",
                "zoneTypeName": {
                    "chi1": "InMall Shop",
                    "chi2": "InMall Shop",
                    "eng": "InMall Shop",
                    "thai": "InMall Shop"
                }
            }
        ]
    },
    "isSuccess": true
}

Clone this wiki locally