-
Notifications
You must be signed in to change notification settings - Fork 0
MonsterDefault
atsanan edited this page Oct 18, 2018
·
7 revisions
GET /api/v1/monsterDefault/info/{id: string}
| Field | Description | Optional | Auth |
|---|---|---|---|
| id | Default monster's ID of a player | No | Yes |
{
"data": {
"_id": "5bb74e91cf7ae9e79e22de3e",
"createAt": "2018-07-26T12:30:30.001Z",
"lastModified": "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"
},
"isSuccess": true
}GET /api/v1/monsterDefault?page=0&limit=10&?sort=mDefaultOrder:1
| Field | Description | Optional | Default |
|---|---|---|---|
| page | Current page of monsters list | Yes | 0 |
| limit | Maximum page of monsters list | Yes | 10 |
{
"data": {
"monsters": [
{
"_id": "5bb74e91cf7ae9e79e22de3e",
"createAt": "2018-07-26T12:30:30.001Z",
"lastModified": "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"
},
{
"_id": "5bc73ceb7996df4468002090",
"bobo": [
"bobo",
"aka"
],
"created_at": "2018-10-17T13:45:15Z",
"mDefaultAssetImageSlot": "5bc73ceb16a71.png",
"mDefaultAssetModel": "5bc73ceb16a63.png",
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"updated_at": "2018-10-17T13:48:21Z"
},
{
"_id": "5bc743357996df4468002091",
"created_at": "2018-10-17T14:12:05Z",
"mDefaultAssetImageSlot": "5bc74335c6915.png",
"mDefaultAssetModel": {},
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"updated_at": "2018-10-18T05:41:21Z"
},
{
"_id": "5bc81d147996df1b8c006962",
"created_at": "2018-10-18T05:41:40Z",
"mDefaultAssetImageSlot": "5bc81d14c3865.png",
"mDefaultAssetModel": "5bc81d14c3848.png",
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"updated_at": "2018-10-18T05:41:40Z"
}
],
"pageIndex": 0,
"pageLimit": 10,
"pages": 1,
"paging": {
"next": "",
"previous": ""
}
},
"isSuccess": true
}POST /api/v1/monsterDefault/add
| Field | Description | Optional |
|---|---|---|
| mDefaultName | Name of default monster | No |
| mDefaultTypeId | ID of default monster | No |
| mDefaultJobCategory | Job Category of this default monster | No |
| mDefaultJobLevel | Job level of this default monster | No |
| mDefaultGroupId | Group's ID of this default monster | No |
| mDefaultGroupLevel | Group's level of this default monster | No |
| mDefaultTextDetail | Detail in text of this default monster | Yes |
| mDefaultAssetImageSlot | Path of the Image slot | No |
| mDefaultAssetVersion | Version of this monster asset | No |
| mDefaultOrder | sorting number | Yes |
{
"data": {
"id": "5b3dba2c083713ffc0c12788",
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"mDefaultTypeId": 1,
"mDefaultJobCategories": [
0
],
"mDefaultJobLevel": 1,
"mDefaultGroupId": 1,
"mDefaultGroupLevel": 1,
"mDefaultTextDetail": "bobo",
"mDefaultAssetModel": "1",
"mDefaultAssetImageSlot": "1",
"mDefaultAssetVersion": 1,
"createAt": "2018-07-05T06:26:52.578Z",
"lastModified": "2018-07-05T06:26:52.578Z"
},
"isSuccess": true
}POST /api/v1/monsterDefault/{id: string}
| Field | Description | Optional |
|---|---|---|
| mDefaultName | Name of default monster | No |
| mDefaultTypeId | ID of default monster | No |
| mDefaultJobCategory | Job Category of this default monster | No |
| mDefaultJobLevel | Job level of this default monster | No |
| mDefaultGroupId | Group’s ID of this default monster | No |
| mDefaultGroupLevel | Group’s level of this default monster | No |
| mDefaultTextDetail | Detail in text of this default monster | Yes |
| mDefaultAssetImageSlot | Path of the Image slot | No |
| mDefaultAssetVersion | Version of this monster asset | No |
| mDefaultOrder | sorting number | Yes |
{
"data": {
"_id": "5bacb25caaea3c1afc7c93de",
"createAt": "2018-09-27T10:35:08.446Z",
"mDefaultAssetImageSlot": "1",
"mDefaultAssetModel": "1",
"mDefaultAssetVersion": 1,
"mDefaultGroupId": 1,
"mDefaultGroupLevel": 1,
"mDefaultJobCategories": [
0,
1,
3
],
"mDefaultJobLevel": 1,
"mDefaultName": {
"chi1": "saku1",
"chi2": "sagu1",
"eng": "Saku1",
"thai": "aaaa1"
},
"mDefaultOrder": 0,
"mDefaultTextDetail": "bobo1",
"mDefaultTypeId": 1
},
"isSuccess": true
}