Skip to content

ShopMode api

atsanan edited this page Oct 18, 2018 · 5 revisions

14. ShopMode

[x] 14.1 Get ShopMode

GET /api/v1/shopMode

Query parameters:

Field Description Optional Default
page Current index of page Yes
limit Maximum of page Yes 10
Returns:
{
    "data": {
        "pageIndex": 0,
        "pageLimit": 10,
        "pages": 1,
        "paging": {
            "next": "",
            "previous": ""
        },
        "shopMode": [
            {
                "_id": "5b8f1c10aaea3c332c922965",
                "created_at": "2018-09-04T23:58:08.722Z",
                "updated_at": "2018-09-04T23:58:08.722Z",
                "shopModeDetail": {
                    "chi1": "shopModeDetail",
                    "chi2": "shopModeDetail",
                    "eng": "shopModeDetail",
                    "thai": "shopModeDetail"
                },
                "shopModeName": {
                    "chi1": "shopModeName",
                    "chi2": "shopModeName",
                    "eng": "shopModeName",
                    "thai": "shopModeName"
                },
                "shopModelAssertModel": "",
                "shopModelAssertVersion": "",
                "updated_at": "2018-09-04T23:58:08.722Z"
            }
        ]
    },
    "isSuccess": true
}

[x] 14.2 Add ShopMode

POST /api/v1/shopMode/add

Json Body:

Field Description Optional Default
shopModeName Name of ShopMode yes
shopModeDetail Detail of ShopMode yes
shopModeAssertMode AssertMode of shopMode yes
shopModelAssertVersion AssertVersion of shopMode yes
Returns:
{
    "data": {
               "_id": "5b8f1c10aaea3c332c922965",
               "created_at": "2018-09-04T23:58:08.722Z",
               "updated_at": "2018-09-04T23:58:08.722Z",
               "shopModeDetail": {
                    "chi1": "shopModeDetail",
                    "chi2": "shopModeDetail",
                    "eng": "shopModeDetail",
                    "thai": "shopModeDetail"
                },
               "shopModeName": {
                    "chi1": "shopModeName",
                    "chi2": "shopModeName",
                    "eng": "shopModeName",
                    "thai": "shopModeName"
                },
               "shopModelAssertModel": "",
               "shopModelAssertVersion": ""
    },
    "isSuccess": true
}

[x] 14.3 Update ShopMode

POST /api/v1/shopMode/{id:string}

Json Body:

Field Description Optional Default
shopModeName Name of ShopMode yes
shopModeDetail Detail of ShopMode yes
shopModeAssertMode AssertMode of shopMode yes
shopModelAssertVersion AssertVersion of shopMode yes
Returns:
{
    "data": {
               "_id": "5b8f1c10aaea3c332c922965",
               "created_at": "2018-09-04T23:58:08.722Z",
               "updated_at": "2018-09-04T23:58:08.722Z",
               "shopModeDetail": {
                    "chi1": "shopModeDetail",
                    "chi2": "shopModeDetail",
                    "eng": "shopModeDetail",
                    "thai": "shopModeDetail"
                },
               "shopModeName": {
                    "chi1": "shopModeName",
                    "chi2": "shopModeName",
                    "eng": "shopModeName",
                    "thai": "shopModeName"
                },
               "shopModelAssertModel": "",
               "shopModelAssertVersion": ""
    },
    "isSuccess": true
}
Clone this wiki locally