Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Search group result

Request url: http://wanekrecruit.com/Drawing/GroupSearch
Method: Post
Params:

{
  "keyword": "group1" 
}


Response expect:

Case 1: có pdf & video
Case 2: có pdf & ko có video
Case 3: ko có pdf và ko có video
Item of drawing separate more: 1, 3, 5, 10, 15, 20, 30 ...

Response success:

{
  "code": 1,
  "Drawing": [
    {
      "id": 1,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 1,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 1,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    }
  ],
  "Video": [
    {
      "id": 3,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 3,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 3,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    }
  ],
  "Image": [
    {
      "id": 2,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 2,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    },
    {
      "id": 123,
      "name": "101-25",
      "image": "http://wanekrecruit.com/Document/ASwirl.jpg" 
    }
  ],
  "endIdx": "null",
  "max": 10,
  "msg": "Search successfully",
  "offset": 0,
  "startIdx": 0,
  "totalCount": 3
}

No video

 
{
  "code": 1,
  "Drawing": [
    {
      "id": 23,
      "name": "101-25.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 24,
      "name": "101-35.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 25,
      "name": "101-36.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 26,
      "name": "101-38.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 27,
      "name": "101-25.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 28,
      "name": "101-35.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 29,
      "name": "101-36.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    },
    {
      "id": 30,
      "name": "101-38.pdf",
      "image": "http://wanekrecruit.com/Document/1.PNG" 
    }
  ],
  "Video": [],
  "Image": [],
  "endIdx": "null",
  "max": 10,
  "msg": "Search successfully",
  "offset": 0,
  "startIdx": 0,
  "totalCount": 3
}

Response failed

{
  "code": -1000,
  "msg": "search failed" 
}