ケース・マイルストンの取得
get
/cases/{id}/milestones
ケース・マイルストンを取得します。
リクエスト
この操作のリクエスト・パラメータはありません。
レスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
本文
ルート・スキーマ: /paths/~1cases~1{id}~1milestones/get/responses/200/schema
application/jsonの例
{
"type":"milestones",
"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/milestones"
}
],
"milestone":{
"milestone":[
{
"name":"Lost",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Lost?action=attain"
}
},
{
"name":"Authorized",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Authorized?action=attain"
}
},
{
"name":"Returned",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Returned?action=attain"
}
},
{
"name":"InReservation",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InReservation?action=attain"
}
},
{
"name":"InRental",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InRental?action=attain"
}
},
{
"name":"InAccident",
"state":"NOT_ATTAINED",
"attain":{
"rel":"attain",
"href":"http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InAccident?action=attain"
}
}
]
}
}
例
次の例に、ケース・マイルストンを取得する場合のレスポンス本文を示します。
{ "type": "milestones", "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/milestones" }], "milestone": { "milestone": [{ "name": "Lost", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Lost?action=attain" } }, { "name": "Authorized", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Authorized?action=attain" } }, { "name": "Returned", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/Returned?action=attain" } }, { "name": "InReservation", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InReservation?action=attain" } }, { "name": "InRental", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InRental?action=attain" } }, { "name": "InAccident", "state": "NOT_ATTAINED", "attain": { "rel": "attain", "href": "http://example.com/bpm/api/3.0/cases/5e4fa87f-d698-4c06-912c-79d162f4e03c/milestones/InAccident?action=attain" } }] } }
cURLの詳細は、「cURLの使用」を参照してください