-
Notifications
You must be signed in to change notification settings - Fork 0
Shop API
atsanan edited this page Oct 18, 2018
·
16 revisions
GET /api/v1/shop/byFloorId/{mallFloorId: string}?page=0&limit=10
| Field | Description | Optional | Default | Auth |
|---|---|---|---|---|
| page | Current page of shops on this floor | Yes | 0 | Yes |
| limit | Maximum page of shops on this floor | Yes | 10 | Yes |
{
"data": {
"mallFloors": [
{
"_id": "5bb7784568efd87103266969",
"created_at": "2018-10-08T11:01:46Z",
"mall": {
"_id": "5bb772fc68efd87103266963",
"created_at": "2018-08-29T11:22:16.859Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.531631,
13.745122
],
"type": "Point"
},
"mallAddress": {
"chi1": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"chi2": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"eng": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"thai": "999 ถนน เพลินจิต แขวง ลุมพินี เขต ปทุมวัน กรุงเทพมหานคร 10330"
},
"mallDetail": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mallName": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mapIndoorId": "EIM-0a656478-3d18-40a3-bfda-8eaacc0d9e55",
"mapOutdoorId": "GaysornVillage",
"order": 1,
"updated_at": "2018-10-07T22:35:30Z"
},
"mallFloorDetail": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallFloorName": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallId": "5bb772fc68efd87103266963",
"mapIndoorFloorData": "1",
"mapIndoorFloorKey": "Gaysorn Village, Floor L",
"shop": {
"_id": "5bc573e76a10e0dca4555752",
"created_at": "2018-08-31T04:35:31.797Z",
"filenameLogo1": "GS_LG_012.png",
"filenameLogo2": "",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.5406,
13.74475
],
"type": "Point"
},
"mallFloorId": "5bb7784568efd87103266969",
"mapReach": 30,
"order": 1,
"shopAdsId": "5b90aa987f58a3000105a0db",
"shopAssertId": "5b8f9a8c7f58a3000105a0d9",
"shopCategoryId": "5b443ce1aaea3c3bd0bb710a",
"shopCode": "",
"shopDetail": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopName": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopTel": "02 664 7272",
"shopUrl": "http://www.gaysornvillage.com/th/stores/detail.php?st_rand=13",
"updated_at": "2018-10-07T21:00:37Z"
},
"updated_at": "2018-10-08T11:03:12Z"
}
],
"pageIndex": 0,
"pageLimit": 1,
"pages": 5,
"paging": {
"next": "/api/v1/shop/byFloorId/5bb7784568efd87103266969?page=1&limit=1",
"previous": ""
}
},
"isSuccess": true
}GET /api/v1/shop/byFloorKey/{mallFloorKey: string}?page=0&limit=10
| Field | Description | Optional | Default | Auth |
|---|---|---|---|---|
| page | Current page of shops on this floor | Yes | 0 | Yes |
| limit | Maximum page of shops on this floor | Yes | 10 | Yes |
{
"data": {
"mallFloors": [
{
"_id": "5bb7784568efd87103266969",
"created_at": "2018-10-08T11:01:46Z",
"mall": {
"_id": "5bb772fc68efd87103266963",
"created_at": "2018-08-29T11:22:16.859Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.531631,
13.745122
],
"type": "Point"
},
"mallAddress": {
"chi1": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"chi2": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"eng": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"thai": "999 ถนน เพลินจิต แขวง ลุมพินี เขต ปทุมวัน กรุงเทพมหานคร 10330"
},
"mallDetail": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mallName": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mapIndoorId": "EIM-0a656478-3d18-40a3-bfda-8eaacc0d9e55",
"mapOutdoorId": "GaysornVillage",
"order": 1,
"updated_at": "2018-10-07T22:35:30Z"
},
"mallFloorDetail": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallFloorName": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallId": "5bb772fc68efd87103266963",
"mapIndoorFloorData": "1",
"mapIndoorFloorKey": "Gaysorn Village, Floor L",
"shop": {
"_id": "5bc573e76a10e0dca4555752",
"created_at": "2018-08-31T04:35:31.797Z",
"filenameLogo1": "GS_LG_012.png",
"filenameLogo2": "",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.5406,
13.74475
],
"type": "Point"
},
"mallFloorId": "5bb7784568efd87103266969",
"mapReach": 30,
"order": 1,
"shopAdsId": "5b90aa987f58a3000105a0db",
"shopAssertId": "5b8f9a8c7f58a3000105a0d9",
"shopCategoryId": "5b443ce1aaea3c3bd0bb710a",
"shopCode": "",
"shopDetail": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopName": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopTel": "02 664 7272",
"shopUrl": "http://www.gaysornvillage.com/th/stores/detail.php?st_rand=13",
"updated_at": "2018-10-07T21:00:37Z"
},
"updated_at": "2018-10-08T11:03:12Z"
},
{
"_id": "5bb7784568efd87103266969",
"created_at": "2018-10-08T11:01:46Z",
"mall": {
"_id": "5bb772fc68efd87103266963",
"created_at": "2018-08-29T11:22:16.859Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.531631,
13.745122
],
"type": "Point"
},
"mallAddress": {
"chi1": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"chi2": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"eng": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"thai": "999 ถนน เพลินจิต แขวง ลุมพินี เขต ปทุมวัน กรุงเทพมหานคร 10330"
},
"mallDetail": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mallName": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mapIndoorId": "EIM-0a656478-3d18-40a3-bfda-8eaacc0d9e55",
"mapOutdoorId": "GaysornVillage",
"order": 1,
"updated_at": "2018-10-07T22:35:30Z"
},
"mallFloorDetail": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallFloorName": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallId": "5bb772fc68efd87103266963",
"mapIndoorFloorData": "1",
"mapIndoorFloorKey": "Gaysorn Village, Floor L",
"shop": {
"_id": "5bc5743f6a10e0dca45564c8",
"created_at": "2018-08-31T04:35:31.797Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.5405,
13.74488
],
"type": "Point"
},
"mallFloorId": "5bb7784568efd87103266969",
"mapReach": 30,
"order": 1,
"shopAdsId": "5b90aa987f58a3000105a0db",
"shopAssertId": "5b8f9a8c7f58a3000105a0d9",
"shopCategoryId": "5b443ce1aaea3c3bd0bb710a",
"shopCode": "shopCode",
"shopDetail": {
"chi1": "莱珀妮沙龙",
"chi2": "蓓麗沙龍",
"eng": "Salon La Prairie",
"thai": "ซาลอน ลา แพรรี"
},
"shopName": {
"chi1": "莱珀妮沙龙",
"chi2": "蓓麗沙龍",
"eng": "Salon La Prairie",
"thai": "ซาลอน ลา แพรรี"
},
"shopTel": "02 656 1190",
"shopUrl": "http://www.gaysornvillage.com/th/stores/detail.php?st_rand=60",
"updated_at": "2018-10-07T21:00:37Z"
},
"updated_at": "2018-10-08T11:03:12Z"
}
],
"pageIndex": 0,
"pageLimit": 2,
"pages": 3,
"paging": {
"next": "/api/v1/shop/byFloorKey/Gaysorn Village, Floor L?page=1&limit=2",
"previous": ""
}
},
"isSuccess": true
}POST /api/v1/shop/byMall/{mallId: string}?page=0&limit=10
| Field | Description | Optional | Default | Auth |
|---|---|---|---|---|
| page | Current page of shops on this floor | Yes | 0 | Yes |
| limit | Maximum page of shops on this floor | Yes | 10 | Yes |
{
"data": {
"mallFloors": [
{
"_id": "5bb7784568efd87103266969",
"created_at": "2018-10-08T11:01:46Z",
"mall": {
"_id": "5bb772fc68efd87103266963",
"created_at": "2018-08-29T11:22:16.859Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.531631,
13.745122
],
"type": "Point"
},
"mallAddress": {
"chi1": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"chi2": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"eng": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"thai": "999 ถนน เพลินจิต แขวง ลุมพินี เขต ปทุมวัน กรุงเทพมหานคร 10330"
},
"mallDetail": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mallName": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mapIndoorId": "EIM-0a656478-3d18-40a3-bfda-8eaacc0d9e55",
"mapOutdoorId": "GaysornVillage",
"order": 1,
"updated_at": "2018-10-07T22:35:30Z"
},
"mallFloorDetail": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallFloorName": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallId": "5bb772fc68efd87103266963",
"mapIndoorFloorData": "1",
"mapIndoorFloorKey": "Gaysorn Village, Floor L",
"shop": {
"_id": "5bc573e76a10e0dca4555752",
"created_at": "2018-08-31T04:35:31.797Z",
"filenameLogo1": "GS_LG_012.png",
"filenameLogo2": "",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.5406,
13.74475
],
"type": "Point"
},
"mallFloorId": "5bb7784568efd87103266969",
"mapReach": 30,
"order": 1,
"shopAdsId": "5b90aa987f58a3000105a0db",
"shopAssertId": "5b8f9a8c7f58a3000105a0d9",
"shopCategoryId": "5b443ce1aaea3c3bd0bb710a",
"shopCode": "",
"shopDetail": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopName": {
"chi1": "路易威登",
"chi2": "路易威登",
"eng": "หลุยส์วิตตอง",
"thai": "Louis Vuitton"
},
"shopTel": "02 664 7272",
"shopUrl": "http://www.gaysornvillage.com/th/stores/detail.php?st_rand=13",
"updated_at": "2018-10-07T21:00:37Z"
},
"updated_at": "2018-10-08T11:03:12Z"
},
{
"_id": "5bb7784568efd87103266969",
"created_at": "2018-10-08T11:01:46Z",
"mall": {
"_id": "5bb772fc68efd87103266963",
"created_at": "2018-08-29T11:22:16.859Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.531631,
13.745122
],
"type": "Point"
},
"mallAddress": {
"chi1": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"chi2": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"eng": "999 Ploenchit Road, Lumpini, Pathumwan, Bangkok 10330",
"thai": "999 ถนน เพลินจิต แขวง ลุมพินี เขต ปทุมวัน กรุงเทพมหานคร 10330"
},
"mallDetail": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mallName": {
"chi1": "Gaysorn village",
"chi2": "Gaysorn village",
"eng": "Gaysorn village",
"thai": "เกษร วิลเลจ"
},
"mapIndoorId": "EIM-0a656478-3d18-40a3-bfda-8eaacc0d9e55",
"mapOutdoorId": "GaysornVillage",
"order": 1,
"updated_at": "2018-10-07T22:35:30Z"
},
"mallFloorDetail": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallFloorName": {
"chi1": "Gaysorn Village, Floor L",
"chi2": "Gaysorn Village, Floor L",
"eng": "Gaysorn Village, Floor L",
"thai": "ศูนย์การค้าเกษร ชั้น L"
},
"mallId": "5bb772fc68efd87103266963",
"mapIndoorFloorData": "1",
"mapIndoorFloorKey": "Gaysorn Village, Floor L",
"shop": {
"_id": "5bc5743f6a10e0dca45564c8",
"created_at": "2018-08-31T04:35:31.797Z",
"filenameLogo1": "filenameLogo1.png",
"filenameLogo2": "filenameLogo2.png",
"isActive": true,
"isSponser": true,
"location": {
"coordinates": [
100.5405,
13.74488
],
"type": "Point"
},
"mallFloorId": "5bb7784568efd87103266969",
"mapReach": 30,
"order": 1,
"shopAdsId": "5b90aa987f58a3000105a0db",
"shopAssertId": "5b8f9a8c7f58a3000105a0d9",
"shopCategoryId": "5b443ce1aaea3c3bd0bb710a",
"shopCode": "shopCode",
"shopDetail": {
"chi1": "莱珀妮沙龙",
"chi2": "蓓麗沙龍",
"eng": "Salon La Prairie",
"thai": "ซาลอน ลา แพรรี"
},
"shopName": {
"chi1": "莱珀妮沙龙",
"chi2": "蓓麗沙龍",
"eng": "Salon La Prairie",
"thai": "ซาลอน ลา แพรรี"
},
"shopTel": "02 656 1190",
"shopUrl": "http://www.gaysornvillage.com/th/stores/detail.php?st_rand=60",
"updated_at": "2018-10-07T21:00:37Z"
},
"updated_at": "2018-10-08T11:03:12Z"
}
],
"pageIndex": 0,
"pageLimit": 2,
"pages": 5,
"paging": {
"next": "/api/v1/shop/byMall/5bb772fc68efd87103266963?page=1&limit=2",
"previous": ""
}
},
"isSuccess": true
}POST /api/v1/shop/NearBy/long=100.5488514&lat=13.8001134&page=0&limit=10
| Field | Description | Optional | Default | Auth |
|---|---|---|---|---|
| long | Longitude of Shop on this floor | Yes | 0 | Yes |
| lat | Longitude of shops on this floor | Yes | 10 | Yes |
| page | Current page of shops on this floor | Yes | 0 | Yes |
| limit | Maximum page of shops on this floor | Yes | 10 | Yes |
"shop": [
{
"_id": "5b3f372c25bc001df266177b",
"dist": {
"calculated": 2098.9154463510504
},
"location": {
"coordinates": [
100.558631896973,
13.8164014816284
],
"type": "Point"
},
"mall": {
"_id": "5b5856a1aaea3c16b4f4bd64",
"createAt": "2018-07-25T10:53:21.35Z",
"isActive": true,
"lastModified": "",
"location": {
"coordinates": [
100.55863189697266,
13.816401481628418
],
"type": "Point"
},
"mallAddress": "ลาดพร้าว",
"mallDetail": "ลาดพร้าว",
"mallName": "ลาดพร้าว",
"mapIndoorId": "EIM-1dcaab70-7cc6-4673-8f9a-4f78dc9409cb",
"mapOutdoorId": "Test"
},
"mallFloor": {
"_id": "5b472cb5aaea3c304445009b",
"createAt": "2018-07-12T10:25:57.952Z",
"lastModified": "2018-07-12T10:43:32.574Z",
"mallFloorDetail": "Siam_discovery-999",
"mallFloorName": "Siam_discovery-999",
"mallId": "5b5856a1aaea3c16b4f4bd64",
"mapIndoorFloorData": "Siam_discovery-999",
"mapIndoorFloorKey": "555"
},
"mallFloorId": "5b472cb5aaea3c304445009b",
"shopName": "seven-eleven-2"
}
]
},