如何使用 OSLC 查询在 CQ 中上传附件

How to upload attachments in CQ using OSLC queries

谁能指导我使用 OSLC 查询将附件上传到 Clearquest 工具。

我是 OSLC 的新手。所以,如果有人提供上传附件的步骤,那将是很大的帮助。

来自 IBM docs(强调我的):

You can use the ClearQuest OSLC 2.0 CM REST API to programmatically perform all Rational ClearQuest 8.0 functions except adding an attachment to a record.

要上传附件,我使用了以下 URL

URL : https://CQURL/oslc/repo/repo_name/db/db_name/record/Record_Type-record_identifier/field/AttachedDocuments/attachment?rcm.action=modify"

不允许使用 PUT 方法,使用 POST 方法并通过多部分输入来上传附件。

如果附件上传成功,状态将为 201。