ケースの取得
get
/cases/{id}
ID別にケースを取得します。
この操作のリクエスト・パラメータはありません。
次の表に、サーバー・レスポンスをまとめます。
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
本文
application/jsonの例
{
"casedata":{
"rel":"casedata",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/casedata"
},
"startDate":"2015-06-05 17:42:50",
"caseDefinitionName":"EURent",
"stakeholders":{
"rel":"stakeholders",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/stakeholders"
},
"activity":{
"rel":"activities",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/activities"
},
"milestones":{
"rel":"milestones",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones"
},
"caseDefinitionId":"default/EURent!1.0/EURent",
"links":[
{
"rel":"back",
"href":"http://example.com/bpm/api/3.0/cases/"
},
{
"rel":"self",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c"
}
],
"levels":2,
"title":"Car rental for Jim Mitch",
"documents":{
"rel":"documents",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/documents"
},
"type":"case",
"categoryDisplayName":"Rent",
"comments":{
"rel":"comments",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments"
},
"state":"ACTIVE"
}
次の例に、ID別にケースを取得する場合のレスポンス本文を示します。
{ "type": "case", "levels": 2, "links": [{ "rel": "back", "href": "http://example.com/bpm/api/3.0/cases/" }, { "rel": "self", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c" }], "title": "Car rental for Jim Mitch", "activity": { "rel": "activities", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/activities" }, "milestones": { "rel": "milestones", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones" }, "comments": { "rel": "comments", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/comments" }, "stakeholders": { "rel": "stakeholders", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/stakeholders" }, "casedata": { "rel": "casedata", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/casedata" }, "documents": { "rel": "documents", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/documents" }, "caseDefinitionId": "default/EURent!1.0/EURent", "caseDefinitionName": "EURent", "categoryDisplayName": "Rent", "state": "ACTIVE", "startDate": "2015-06-05 17:42:50" }
cURLの詳細は、「cURLの使用」を参照してください