プロジェクトの取得
get
/OracleBAMREST/api/projects/{projectname}
プロジェクト名に基づいてプロジェクト情報を取得します。
リクエスト
問合せパラメータ
- expand(optional): string
expandパラメータを使用すると、1つ以上の子コレクション・リソースをその場で展開できます。
レスポンス
サポートされているメディア・タイプ
- application/json
- application/xml
200 レスポンス
成功
レスポンスの例(application/json)
{
"queries":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries"
}
]
},
"displayName":"CommonAudit",
"id":"/project/BAMFramework",
"alerts":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/alerts"
}
]
},
"dataObjects":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/dataobjects"
}
]
},
"name":"BAMFramework",
"businessViews":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/businessviews"
}
]
},
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework"
}
],
"dashboards":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/dashboards"
}
]
},
"parameters":{
"links":[
{
"rel":"self",
"href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/parameters"
}
]
}
}
例
次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、すべてのパブリッシュされた項目を検索する方法を示しています。
curl -i -X GET http://<hostname>/content/published/api/v1/items?access-token=Y2FhcyBkZWZhdWx0IHRva2Vu
または
curl -i -X GET ?H ???access-token: Y2FhcyBkZWZhdWx0IHRva2Vu??? http://<hostname>/content/published/api/v1/items
例: レスポンス・ヘッダー
次にレスポンス・ヘッダーの例を示します。
HTTP/1.1 200 OK Cache-Control: max-age=0 Content-Length: 1325 Content-Type: application/json Date: Wed, 11 Jan 2017 09:49:21 GMT Etag: "57f8bc9ebbfb4d9436ed96458b2406ca203d0b4017be19c86fa9636856308321" Server: Apache-Coyote/1.1 X-XSS-Protection: 1 x-content-type-options: nosniff
例: レスポンス本文
JSON形式で返されるレスポンスの例を次に示します。CaaSシステムから検索されるパブリッシュされた項目のリストを表示します。
{
"items":
{
"ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef":
{
"id": "ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef",
"type": "ModelType",
"name": "BMW",
"description": "BMW model description",
"createdby": "userName",
"createddate":
{
"value": "2017-01-03T09:48:56.110Z",
"timezone": "UTC",
"description": ""
},
"updatedby": "userName",
"updateddate":
{
"value": "2017-01-03T10:02:21.360Z",
"timezone": "UTC",
"description": ""
},
"links": null,
"data" : {
"Model": ""BMW Z4"
"Year": 2015,
}
},
"ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2":
{
"id": "ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
"type": "ModelType",
"name": "BMW",
"description": "BMW model description",
"createdby": "userName",
"createddate":
{
"value": "2017-01-03T10:28:28.690Z",
"timezone": "UTC",
"description": ""
},
"updatedby": "userName",
"updateddate":
{
"value": "2017-01-03T10:28:28.690Z",
"timezone": "UTC",
"description": ""
},
"links": null,
"data" : {
"Model": "BMW 3-Series"
"Year": 2016,
}
}
},
"links":
[
{
"href": "https://<hostname>/content/published/api/v1/items/bulk?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
"rel": "self",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/published/api/v1/items/bulk?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2",
"rel": "canonical",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": ""
},
{
"href": "https://<hostname>/content/published/api/v1/metadata-catalog/items/bulk",
"rel": "describedby",
"templated": false,
"method": "GET",
"profile": "",
"mediaType": "application/schema+json"
}
]
}