comparison OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 1703:b80e76dd1d56 db-changes

ordered-slices continued
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 13 Oct 2015 16:10:35 +0200
parents 9980875edc7c
children 2b812969e136
comparison
equal deleted inserted replaced
1702:9980875edc7c 1703:b80e76dd1d56
1099 const std::string id = call.GetUriComponent("id", ""); 1099 const std::string id = call.GetUriComponent("id", "");
1100 1100
1101 ServerIndex& index = OrthancRestApi::GetIndex(call); 1101 ServerIndex& index = OrthancRestApi::GetIndex(call);
1102 SliceOrdering ordering(index, id); 1102 SliceOrdering ordering(index, id);
1103 1103
1104 Json::Value result;
1105 ordering.Format(result);
1106 call.GetOutput().AnswerJson(result);
1104 } 1107 }
1105 1108
1106 1109
1107 void OrthancRestApi::RegisterResources() 1110 void OrthancRestApi::RegisterResources()
1108 { 1111 {