在EG https://localhost:8443/api/上的Mirth REST API中,在channelGroups下,有一个bulkUpdate测试部分,它有两个参数:channelGroups和removedChannelGroupIds。默认情况下,我将override设置为true。
尽管以各种格式(EG作为Mirth对象、频道列表、channelGroups列表等)传递了channelGroups和ID列表,但channelGroup拒绝了这些格式,并且我不知道Mirth想要什么格式。将这两个字段中的任何一个留空也会失败。有没有人有两个字段的最小工作数据集的示例,当调用bulkUpdate时,该数据集将从Mirth返回成功?
欢乐的版本是3.6.0,但理想情况下,它也应该适用于传统设备的3.5.1版本。
发布于 2018-10-18 00:13:43
这个问题在用户论坛https://www.mirthcorp.com/community/forums/showthread.php?t=218606上得到了回答
该路由实际上需要多部分/表单数据。例如,您可以发送一个带有"Content-Type: multipart/form-data;boundary=abc123“的请求和如下有效负载:
--abc123
Content-Type: application/xml; charset=utf8
Content-Disposition: form-data; name="channelGroups"
<set>
<channelGroup version="3.6.1">
<id>56a61dfb-58df-4286-8100-5ccab05364ba</id>
<name>Group 1</name>
<revision>1</revision>
<lastModified>
<time>1537550138646</time>
<timezone>UTC</timezone>
</lastModified>
<description></description>
<channels/>
</channelGroup>
</set>
--abc123
Content-Type: application/xml; charset=utf8
Content-Disposition: form-data; name="removedChannelGroupIds"
<set/>
--abc123--从mirth 3.6开始,不能从SwaggerUI调用此API函数。
发布于 2021-03-11 05:26:31
它似乎也无法在通道组中创建通道。
https://stackoverflow.com/questions/52445019
复制相似问题