問合せの取得

get

/OracleBAMREST/api/projects/{projectname}/queries

BAMによってサポートされる問合せのタイプのリストを取得します。

リクエスト

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

先頭に戻る

レスポンス

サポートされているメディア・タイプ

200 レスポンス

成功
本文
レスポンスの例(application/json)
{
    "items":[
        {
            "resource":"businessqueries",
            "links":[
                {
                    "rel":"self",
                    "href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/businessqueries"
                }
            ]
        },
        {
            "resource":"continuousqueries",
            "links":[
                {
                    "rel":"self",
                    "href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries/continuousqueries"
                }
            ]
        }
    ],
    "links":[
        {
            "rel":"self",
            "href":"http://example.com:7001/OracleBAMREST/api/projects/BAMFramework/queries"
        }
    ]
}
先頭に戻る

次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、GUID別に一括でパブリッシュされた項目を参照する方法を示しています。

curl -i -X GET https://<hostname>/content/published/api/v1/items/bulk/aggregate?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2&access-token= Y2FhcyBkZWZhdWx0IHRva2Vu

または

curl -i -X GET –H “access-token: Y2FhcyBkZWZhdWx0IHRva2Vu” https://<hostname>/content/published/api/v1/items/bulk/aggregate?guids=ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2&

例: レスポンス・ヘッダー

次にレスポンス・ヘッダーの例を示します。

HTTP/1.1 200 OK
Cache-Control: max-age=0
Content-Length: 1750
Content-Type: application/json
Date: Tue, 03 Jan 2017 10:30:12 GMT
Etag: "ba12800a55d800aa095e45c5a7d8e6a5487b72727b4753febd81fd755757e8d7"
Server: Apache-Coyote/1.1
X-XSS-Protection: 1
x-content-type-options: nosniff

例: レスポンス本文

JSON形式で返されるレスポンスの例を次に示します。GUID別に一括でパブリッシュされた項目を表示します: ModelType_core_65c6becf-08d1-4755-9d5e-cecd3eef34ef,ModelType_core_b446f89e-1516-468f-9b7a-f483613641a2

先頭に戻る