Hi,
When you run the REST API command to get the paginated details (example
[1]), the output given [2] has the *recordsFiltered* and *draw* fields.
What do they stand for?
*(recordsFiltered* seems to give the same information as *recordsTotal)*
[1] curl -X GET -H "Content-Type: application/json" -H "Authorization:
Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https:
//localhost:9443/mdm-admin/paginate/operations/ios/f409r4c55924rt4af9a44tts15y9d6cd56h1047d
[2]
> GET
/mdm-admin/operations/paginate/ios/f409r4c55924rt4af9a44tts15y9d6cd56h1047d
HTTP/1.1
> Host: localhost:9443
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a
< HTTP/1.1 200 OK
< Cache-Control: private
< Expires: Thu, 01 Jan 1970 05:30:00 IST
< Date: Tue, 23 Feb 2016 05:23:56 GMT
< Content-Type: application/json
< Content-Length: 3785
< Server: WSO2 Carbon Server
{"recordsTotal":6,"recordsFiltered":6,"draw":0,"data":[
{"code":"DEVICE_INFO","type":"COMMAND","id":38,"status":"PENDING",
"receivedTimeStamp":"","createdTimeStamp":"2016-02-23 10:51:22.06",
"isEnabled":false},{"code":"APPLICATION_LIST","type":"COMMAND","id":37,
"status":"PENDING","receivedTimeStamp":"","createdTimeStamp":"2016-02-23
10:51:20.755","isEnabled":false}]}
[3] JSON output.
{ "recordsTotal": 6, "recordsFiltered": 6, "draw": 0, "data": [ { "code":
"DEVICE_INFO", "type": "COMMAND", "id": 38, "status": "PENDING",
"receivedTimeStamp": "", "createdTimeStamp": "2016-02-23 10:51:22.06",
"isEnabled": false } ] }
Thanks & Regards
Shavindri Dissanayake
Technical Writer
WSO2 Inc.
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev