ケース・コメントの取得

get
/cases/{id}/comments
ケース・コメントを取得します。

この操作のリクエスト・パラメータはありません。

次の表に、サーバー・レスポンスをまとめます。

サポートされているメディア・タイプ
  • application/json
  • application/xml

200 レスポンス

成功
本文
application/jsonの例

{
    "type":"comments",
    "levels":0,
    "links":[
        {
            "rel":"back",
            "href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c"
        },
        {
            "rel":"self",
            "href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments"
        }
    ],
    "comment":{
        "comment":[
            {
                "commentStr":"Testing Comments Post REST API",
                "updatedBy":"jstein",
                "updatedDate":"2015-06-08 14:43:08"
            },
            {
                "commentStr":"Creating a case link",
                "updatedBy":"wfaulk",
                "updatedDate":"2015-06-05 17:42:51"
            }
        ]
    }
}

次の例に、ケース・コメントを取得する場合のレスポンス本文を示します。

{
					"type": "comments",
					"levels": 0,
					"links": [{
						"rel": "back",
						"href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c"
					},
					{
						"rel": "self",
						"href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments"
					}],
					"comment": {
						"comment": [{
							"commentStr": "Testing Comments Post REST API",
							"updatedBy": "jstein",
							"updatedDate": "2015-06-08 14:43:08"
						},
						{
							"commentStr": "Creating a case link",
							"updatedBy": "wfaulk",
							"updatedDate": "2015-06-05 17:42:51"
						}]
					}
				}

cURLの詳細は、「cURLの使用」を参照してください