使用可能なリソースのリストの取得

get

/mftapp/rest/v1/metadata-catalog

各リソース名を代替名とともに示し、リソースのメタ・データの取得に使用できるリンクを示します

リクエスト

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

トップに戻る

レスポンス

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

200レスポンス

本文 ()
ルート・スキーマ : resourceCatalog
型: object
ソースを表示
ネストされたスキーマ: items
型: array
MFTリソースに関する情報。
ソースを表示
ネストされたスキーマ : items-items[0]
型: object
ソースを表示
レスポンスの例(application/json)
{
    "items":[
        {
            "name":"events",
            "links":[
                {
                    "rel":"alternate",
                    "href":"http://host:port/mftapp/rest/v1/metadata-catalog/events",
                    "mediaType":"application/schema+json"
                },
                {
                    "rel":"describes",
                    "href":"http://host:port/mftapp/rest/v1/events"
                }
            ]
        },
        {
            "name":"sources",
            "links":[
                {
                    "rel":"alternate",
                    "href":"http://host:port/mftapp/rest/v1/metadata-catalog/sources",
                    "mediaType":"application/schema+json"
                },
                {
                    "rel":"describes",
                    "href":"http://host:port/mftapp/rest/v1/sources"
                }
            ]
        }
    ],
    "links":[
        {
            "rel":"alternate",
            "href":"http://host:port/mftapp/rest/v1/metadata-catalog/catalog",
            "mediaType":"application/schema+json"
        },
        {
            "rel":"self",
            "href":"http://host:port/mftapp/rest/v1/metadata-catalog/"
        }
    ]
}

500レスポンス

問題が発生
本文 ()
ルート・スキーマ: Error information.
型: object
タイトル: Error information
ソースを表示
レスポンスの例(application/json)
{
    "errorCode":"MFT-5445",
    "errorKey":"MFT_REST_UNABLE_TO_LIST_RESOURCES_CATALOG",
    "errorMessage":"Unable to list the resources catalog of MFT RESTful services."
}
トップに戻る

レスポンス本文の例

次の例は、cURLを使用してRESTリソースにGETリクエストを発行して、メタデータ・カタログ取得する方法を示しています。
curl -i -X GET -H "Content-Type: application/json" http://host:port/mftapp/rest/v1/metadata-catalog

次の例では、正常終了したリクエストのレスポンス本文のコンテンツを示しています(JSON形式):

{
  "items": [
    {
      "name": "events",
      "links": [
        {
          "rel": "alternate",
          "href": "http://host:port/mftapp/rest/v1/metadata-catalog/events",
          "mediaType": "application/schema+json"
        },
        {
          "rel": "describes",
          "href": "http://host:port/mftapp/rest/v1/events"
        }
      ]
    },
    {
      "name": "sources",
      "links": [
        {
          "rel": "alternate",
          "href": "http://host:port/mftapp/rest/v1/metadata-catalog/sources",
          "mediaType": "application/schema+json"
        },
        {
          "rel": "describes",
          "href": "http://host:port/mftapp/rest/v1/sources"
        }
      ]
    },
    {
      "name": "applicationMetadata",
      "links": [
        {
          "rel": "alternate",
          "href": "http://host:port/mftapp/rest/v1/metadata-catalog/applicationMetadata",
          "mediaType": "application/schema+json"
        },
        {
          "rel": "describes",
          "href": "http://host:port/mftapp/rest/v1/applicationMetadata"
        }
      ]
    },
    {
      "name": "artifacts",
      "links": [
        {
          "rel": "alternate",
          "href": "http://host:port/mftapp/rest/v1/metadata-catalog/artifacts",
          "mediaType": "application/schema+json"
        },
        {
          "rel": "describes",
          "href": "http://host:port/mftapp/rest/v1/artifacts"
        }
      ]
    },
    {
      "name": "purges",
      "links": [
        {
          "rel": "alternate",
          "href": "http://host:port/mftapp/rest/v1/metadata-catalog/purges",
          "mediaType": "application/schema+json"
        },
        {
          "rel": "describes",
          "href": "http://host:port/mftapp/rest/v1/purges"
        }
      ]
    }
  ],
  "links": [
    {
      "rel": "alternate",
      "href": "http://host:port/mftapp/rest/v1/metadata-catalog/catalog",
      "mediaType": "application/schema+json"
    },
    {
      "rel": "self",
      "href": "http://host:port/mftapp/rest/v1/metadata-catalog/"
    }
  ]
} 	  
トップに戻る