Project: usergrid
Issue USERGRID-1124: Internal "size" within entity metadata is not displayed when doing a GET by entity name 
This request does not come back with size in metadata object. GET /org/app/collection/entityName {code} { "action" : "get", "application" : "ec2df3b3-6e0e-11e5-9798-0223e9015bf9", "params" : { }, "path" : "/regions", "uri" : "https://testing", "entities" : [ { "uuid" : "2dcf254c-8ef5-11e5-87c2-069a7df27e87", "type" : "region", "name" : "region6", "created" : 1447961939135, "modified" : 1447961939135, "metadata" : { "path" : "/regions/2dcf254c-8ef5-11e5-87c2-069a7df27e87" } } ], "timestamp" : 1447976782774, "duration" : 77, "organization" : "org", "applicationName" : "app" } {code} However, get with the entity's UUID does return the metadata size. GET /org/app/collection/2dcf254c-8ef5-11e5-87c2-069a7df27e87 {code} { "action" : "get", "application" : "ec2df3b3-6e0e-11e5-9798-0223e9015bf9", "params" : { }, "path" : "/regions", "uri" : "https://testing", "entities" : [ { "uuid" : "2dcf254c-8ef5-11e5-87c2-069a7df27e87", "type" : "region", "name" : "region6", "created" : 1447961939135, "modified" : 1447961939135, "metadata" : { "path" : "/regions/2dcf254c-8ef5-11e5-87c2-069a7df27e87", "size" : 334 } } ], "timestamp" : 1447977010952, "duration" : 36, "organization" : "org", "applicationName" : "app" } {code}
Story points: 1