Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 5405:62bb63346185
All 'expand' GET arguments now accepts expand=true and expand=false values + /studies/../instances now supports expand=false
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 17 Oct 2023 15:06:11 +0200 |
parents | b5f2122a1334 |
children | 4be5f117aa0d |
comparison
equal
deleted
inserted
replaced
5404:7bae5f7ebe6a | 5405:62bb63346185 |
---|---|
655 "about the reported jobs (if `expand` argument is provided)") | 655 "about the reported jobs (if `expand` argument is provided)") |
656 .SetTruncatedJsonHttpGetSample("https://demo.orthanc-server.com/jobs", 3); | 656 .SetTruncatedJsonHttpGetSample("https://demo.orthanc-server.com/jobs", 3); |
657 return; | 657 return; |
658 } | 658 } |
659 | 659 |
660 bool expand = call.HasArgument("expand"); | 660 bool expand = call.HasArgument("expand") && call.GetBooleanArgument("expand", true); |
661 | 661 |
662 Json::Value v = Json::arrayValue; | 662 Json::Value v = Json::arrayValue; |
663 | 663 |
664 std::set<std::string> jobs; | 664 std::set<std::string> jobs; |
665 OrthancRestApi::GetContext(call).GetJobsEngine().GetRegistry().ListJobs(jobs); | 665 OrthancRestApi::GetContext(call).GetJobsEngine().GetRegistry().ListJobs(jobs); |