ビジネス問合せの取得
get
/OracleBAMREST/api/projects/{projectname}/queries/businessqueries
プロジェクトに特有のビジネス問合せのリストを取得します。
リクエスト
この操作にはリクエスト・パラメータはありません。
先頭に戻るレスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
レスポンスの例(application/json)
{
"items":[
{
"id":"/project/BAMFramework/businessquery/Chart0DeliveredCount",
"name":"Chart0DeliveredCount",
"displayName":"DeliveredCount_BQ",
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/businessqueries/Chart0DeliveredCount"
}
]
},
{
"id":"/project/BAMFramework/businessquery/ErrorCategory_DRL_BQ_v1",
"name":"ErrorCategory_DRL_BQ_v1",
"displayName":"ErrorCategory_DRL_BQ_v1",
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/businessqueries/ErrorCategory_DRL_BQ_v1"
}
]
}
],
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/businessqueries"
}
]
}
例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、すべての項目を検索する方法を示しています。
curl -i -X GET https://<hostname>/content/management/api/v1/items
例: レスポンス・ヘッダー
次にレスポンス・ヘッダーの例を示します。
HTTP/1.1 200 OK Cache-Control: max-age=0 Content-Length: 1152 Content-Type: application/json Date: Wed, 11 Jan 2017 08:54:01 GMT Etag: "acfb56fa651bf70fd7f6e35bc94262f3661c77034b2e5d3b65bf8dc21269283b" Server: Apache-Coyote/1.1 X-XSS-Protection: 1 x-content-type-options: nosniff
例: レスポンス本文
JSON形式で返されるレスポンスの例を次に示します。CaaSシステムから検索される項目のリストを表示します。
{
"hasMore": false,
"limit": 2,
"count": 2,
"items":
[
{
"id": "ModelType_core_b2313769-4573-429d-ab2e-23cea2f9f5ff",
"description": "",
"link":
{
"href": "https://<hostname>/content/management/api/v1/items/ModelType_core_b2313769-4573-429d-ab2e-23cea2f9f5ff",
"rel": "Reference",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
"Model": "BMW Series",
"Year": "2016"
},
{
"id": "ModelType_core_b261389-4573-589d-af2e-28cea2f9f5ee",
"description": "",
"link":
{
"href": "https://<hostname>/content/management/api/v1/items/ModelType_core_b261389-4573-589d-af2e-28cea2f9f5ee",
"rel": "Reference",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
"Model": "Honda Accord",
"Year": "2017"
}
],
"links":
[
{
"href": "https://<hostname>/content/management/api/v1/items",
"rel": "self",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/items",
"rel": "canonical",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/metadata-catalog/items",
"rel": "describedby",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": "application/schema+json"
},
{
"href": "https://<hostname>/content/management/api/v1/items?offset=0",
"rel": "first",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/management/api/v1/items?offset=0",
"rel": "last",
"templated": false,
"method": "",
"profile": "",
"mediaType": ""
}
],
"offset": 0
}