# HG changeset patch # User Sebastien Jodogne # Date 1414143827 -7200 # Node ID 09aa7c126be9f871e06f3f2a029eca20fe67a278 # Parent 1e139066563925a0bb955e35254ceae9d91f5f21 URIs 'instance-tags' now indexed by the instance IDs diff -r 1e1390665639 -r 09aa7c126be9 OrthancServer/OrthancRestApi/OrthancRestResources.cpp --- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Thu Oct 23 14:42:11 2014 +0200 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Fri Oct 24 11:43:47 2014 +0200 @@ -888,7 +888,7 @@ context.GetIndex().GetChildInstances(instances, publicId); // (*) - Json::Value result = Json::arrayValue; + Json::Value result = Json::objectValue; for (Instances::const_iterator it = instances.begin(); it != instances.end(); it++) @@ -900,11 +900,11 @@ { Json::Value simplified; SimplifyTags(simplified, full); - result.append(simplified); + result[*it] = simplified; } else { - result.append(full); + result[*it] = full; } }