Hi all,
Anybody can help me explain bellow issue:

- I make the first request:
http://10.0.0.5:8080/abc/demo/?access_token=YWMtZefHjthbEeWlBIeYZYJBlgAAAVMmVeU-qCCOyvI4IdlrrtTusOE21bhjd1w
- Result:
{
  "action": "get",
  "application": "701ab745-d61e-11e5-aff7-002710e1c5a8",
  "params": {},
  "uri": "http://10.0.0.5:8080/abc/demo";,
  "entities": [
    {
      "uuid": "701ab745-d61e-11e5-aff7-002710e1c5a8",
      "type": "application",
      "name": "abc/demo",
      "accesstokenttl": null,
      "applicationName": "demo",
      "organizationName": "abc",
      "created": 1455786192283,
      "modified": 1455786192283,
      "metadata": {
        "collections": {
          "configs": {
            "count": 3,
            "name": "configs",
            "type": "config",
            "title": "Configs"
          },
          "devices": {
            "count": 3,
            "name": "devices",
            "type": "device",
            "title": "Devices"
          },
          "roles": {
            "count": 3,
            "name": "roles",
            "type": "role",
            "title": "Roles"
          }
        }
      }
    }
  ],
  "timestamp": 1456032468329,
  "duration": 10,
  "organization": "abc",
  "applicationName": "demo"
}


- Second request:
http://10.0.0.5:8080/abc/demo/configs?access_token=YWMtzJ98mthdEeWwLAfatjr4GgAAAVMmZaHbJ8Szg5m3eoDGSbxYh5NNhvYLOsY
- Result:
{
  "action": "get",
  "application": "701ab745-d61e-11e5-aff7-002710e1c5a8",
  "params": {},
  "path": "/configs",
  "uri": "http://10.0.0.5:8080/abc/demo/configs";,
  "entities": [
    {
      "uuid": "31e62d22-d7e1-11e5-a6a9-002710e1c5a8",
      "type": "config",
      "name": "test",
      "created": 1455979790945,
      "modified": 1455979790945,
      "metadata": {
        "path": "/configs/31e62d22-d7e1-11e5-a6a9-002710e1c5a8",
        "size": 315
      }
    }
  ],
  "timestamp": 1456033796956,
  "duration": 11,
  "organization": "abc",
  "applicationName": "demo",
  "count": 1
}

Why in second request number of entities is 1
But in the first request count of "Configs" collection is 3
I'm using usergrid version 2.1.1

Thank you very much for your help.
-- 
*---------------------------------------------------------------------------------------------*
*Thanh Vu*

Reply via email to