-
Notifications
You must be signed in to change notification settings - Fork 0
WildMonster
atsanan edited this page Nov 13, 2018
·
8 revisions
GET /api/v1/wildMonster/byZone
| Field | Description | Optional | Default | Auth |
|---|---|---|---|---|
| zoneTypeId | ID of the zone's type | No | Yes | |
| toMallFloor | Mall Floor Id | No | Yes | |
| toShop | Shop Id | No | Yes | |
| limit | Maimum of number of monster | Yes | 5 | Yes |
{
"data": {
"limit": 5,
"monsters": [
{
"_id": "5bb75493cf7ae9e79e22de45",
"count": 2,
"createAt": "2018-08-31T04:35:31.797Z",
"expiredDateTime": "2018-07-25T11:59:59Z",
"isActive": false,
"isGoldenMinutes": false,
"isReachDateTime": false,
"lastModified": "2018-08-31T04:32:53.031Z",
"mDefaultId": "5bb74e91cf7ae9e79e22de3e",
"monsterDefault": {
"_id": "5bb74e91cf7ae9e79e22de3e",
"createAt": "2018-07-26T12:30:30.001Z",
"mDefaultAssetImageSlot": "5b59bee608371302a8901991.png",
"mDefaultAssetModel": "5b59bee608371302a8901991.asset",
"mDefaultAssetVersion": 1,
"mDefaultGroupId": 1,
"mDefaultGroupLevel": 1,
"mDefaultJobCategory": [
"5b59bee608371302a8901991",
"5b59bee608371302a8901991",
"5b59bee608371302a8901991",
"5b59bee608371302a8901991"
],
"mDefaultJobLevel": 1,
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"mDefaultOrder": 0,
"mDefaultTextDetail": {
"chi1": "อธิบายรายละเอียดมอนสเตอร์ ตามch1",
"chi2": "อธิบายรายละเอียดมอนสเตอร์ ตามch2",
"eng": "อธิบายรายละเอียดมอนสเตอร์ ตามeng",
"thai": "อธิบายรายละเอียดมอนสเตอร์ ตามth"
},
"mDefaultTypeId": "5b59ccd60812345a89654991",
"updated_at": "2018-10-08T13:41:55Z"
},
"startDateTime": "2018-07-26T00:00:00Z",
"toMallFloor": "5b3ddae212455826051945d0",
"toShop": "5b3ddd9312455826051945d2",
"zoneTypeId": "5b59bf58e1b0631253879402"
}
]
},
"isSuccess": true
}POST /api/v1/wildMonster/pick
| Field | Description | Optional | Auth |
|---|---|---|---|
| wildMonsterId | Wild Monster's ID | No | Yes |
| playerId | Player's ID | No | Yes |
{
"data": {
"monster": {
"_id": "5b4710930837139ebc444bae",
"createAt": "2018-07-12T08:25:55.263Z",
"mDefaultId": "5b332284bdfdd84f1fbd6793",
"mPlayerFoodDatetime": "0001-01-01T00:00:00Z",
"mPlayerHabit": 0,
"mPlayerHappinessDatetime": "0001-01-01T00:00:00Z",
"mPlayerHealthDatetime": "0001-01-01T00:00:00Z",
"mPlayerName": "",
"mPlayerStatusFood": 0,
"mPlayerStatusHappiness": 0,
"mPlayerStatusHealth": 0,
"monstersDefault": {
"_id": "5b332284bdfdd84f1fbd6793",
"createAt": "2018-06-27T05:41:51.71Z",
"lastModified": "2018-06-27T08:23:49.71Z",
"mDefaultAssetImageSlot": "1",
"mDefaultAssetModel": "1",
"mDefaultAssetVersion": 1,
"mDefaultGroupId": 1,
"mDefaultGroupLevel": 1,
"mDefaultJobCategories": [
0
],
"mDefaultJobLevel": 1,
"mDefaultName": "mon-1",
"mDefaultTextDetail": "bobo",
"mDefaultTypeId": 1
},
"playerId": "5b2ca882bdfdd84f1fa5fe44"
}
},
"isSuccess": true
}POST /api/v1/wildMonster/add
| Field | Description | Optional | Auth |
|---|---|---|---|
| * All fields | - | No | admin |
{
"data": {
"id": "5b56a75c08371313991affa3",
"mDefaultId": "5b332284bdfdd84f1fbd6793",
"toShop": "",
"toMallFloor": "",
"count": 10,
"zoneTypeId": 2,
"expiredDateTime": "0001-01-01T00:00:00Z",
"startDateTime": "0001-01-01T00:00:00Z",
"isReachDateTime": false,
"isActive": false,
"isGoldenMinutes": false,
"createAt": "2018-07-24T04:13:16.999Z",
"lastModified": "0001-01-01T00:00:00Z"
},
"isSuccess": true
}