comparison Resources/Samples/Lua/ModifyInstanceWithSequence.lua @ 2249:38c7bf2e10f6

updated samples to set keepStrings=ture when calling DumpJson() to access the Orthanc API
author Alain Mazy <alain@mazy.be>
date Mon, 16 Jan 2017 13:55:54 +0100
parents 8ca0e89798b2
children
comparison
equal deleted inserted replaced
2248:69b0f4e8a49b 2249:38c7bf2e10f6
15 local request = {} 15 local request = {}
16 request['Replace'] = replace 16 request['Replace'] = replace
17 17
18 -- Create the modified instance 18 -- Create the modified instance
19 local modified = RestApiPost('/instances/' .. instanceId .. '/modify', 19 local modified = RestApiPost('/instances/' .. instanceId .. '/modify',
20 DumpJson(request)) 20 DumpJson(request, true))
21 21
22 -- Upload the modified instance to the Orthanc store 22 -- Upload the modified instance to the Orthanc store
23 RestApiPost('/instances/', modified) 23 RestApiPost('/instances/', modified)
24 24
25 -- Delete the original instance 25 -- Delete the original instance