[英]What is a working minimal example of POST /channelgroups/_bulkUpdate in Mirth REST API?
在 EG https://localhost:8443/api/上的 Mirth REST API 中,Channel Groups 下有一個用於 bulkUpdate 的測試部分,它有兩個參數:channelGroups 和 removedChannelGroupIds。 默認情況下,我將覆蓋設置為 true。
盡管以各種格式傳遞 channelGroups 和 ID 列表(EG 作為 channelGroup XML 對象、頻道列表、channelGroups 列表等)Mirth 拒絕這些格式,我不知道 Mirth 追求什么格式。 將任一字段留空也會失敗。 有沒有人有兩個字段的最小工作數據集的示例,在調用 bulkUpdate 時將從 Mirth 返回成功?
Mirth 版本是 3.6.0,但理想情況下,它也應該適用於舊設備的 3.5.1。
這是在用戶論壇上回答的https://www.mirthcorp.com/community/forums/showthread.php?t=218606
這條路線實際上需要 multipart/form-data。 例如,您可以發送一個帶有“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 函數。
似乎也無法在頻道組中創建頻道。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.