Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestModalities.cpp @ 3192:595bfee4391a
URI "/peers?expand" provides more information
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 Feb 2019 06:44:36 +0100 |
parents | 860aed8258c3 |
children | f687e11aeb13 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Mon Feb 04 21:09:44 2019 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestModalities.cpp Tue Feb 05 06:44:36 2019 +0100 @@ -1015,16 +1015,9 @@ if (lock.GetConfiguration().LookupOrthancPeer(peer, *it)) { - Json::Value jsonPeer = Json::objectValue; - // only return the minimum information to identify the - // destination, do not include "security" information like - // passwords - jsonPeer["Url"] = peer.GetUrl(); - if (!peer.GetUsername().empty()) - { - jsonPeer["Username"] = peer.GetUsername(); - } - result[*it] = jsonPeer; + Json::Value info; + peer.FormatPublic(info); + result[*it] = info; } } call.GetOutput().AnswerJson(result);