機械翻訳について

すべてのデータ型を一覧表示

get

/content/management/api/v1.1/dataTypes

すべてのデータ型の情報をリストします。

リクエスト

問合せパラメータ
トップに戻る

レスポンス

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

200レスポンス

OK。
本文()
ルート・スキーマ : DataTypes
型: object
DataTypes
ソースを表示
ネストされたスキーマ : dataTypes
型: array
dataTypes. リスト
ソースを表示
ネストされたスキーマ : DataType
型: object
DataType
ソースを表示

304 レスポンス

変更されていません。

400レスポンス

不正リクエスト

403レスポンス

禁止。

500レスポンス

内部サーバー・エラー
トップに戻る

次の例では、cURLを使用してGETリクエストを送信することによってすべてのタイプを取得する方法を示します。

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/dataTypes'

例:

これには、システムでサポートされているすべてのDataTypesがリストされます。

/content/management/api/v1.1/dataTypes

レスポンス本文

{
    "dataTypes": [
    {
      "datatype": "text",
      "description": "Supports upto 2000 characters"
    },
    {
      "datatype": "largetext",
      "description": "Supports unlimited text"
    },
    {
      "datatype": "number",
      "description": "Supports Supports as signed Integer value with the range of -2,147,483,648 to 2,147,483,647"
    },
    {
      "datatype": "decimal",
      "description": "Supports float or decimal values with the range of approximately ??3.40282347E+38F (6-7 significant decimal digits)"
    },
    {
      "datatype": "boolean",
      "description": "Supports Boolean values of TRUE or FALSE, default value is FALSE for empty"
    },
    {
      "datatype": "reference",
      "description": "Supports the reference relationship to other Item(s)"
    },
    {
      "datatype": "datetime",
      "description": "Supports date and time values"
    },
    {
      "datatype": "location",
      "description": "Supports location data about geo location using longitude and latitude values"
    },
    {
      "datatype": "json",
      "description": "Supports the json type data"
    }
    ],
    "links": [
    {
      "href": "https://host:port/content/management/api/v1.1/dataTypes",
      "rel": "self",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/dataTypes",
      "rel": "canonical",
      "method": "GET",
      "mediaType": "application/json"
    },
    {
      "href": "https://host:port/content/management/api/v1.1/metadata-catalog/dataTypes",
      "rel": "describedby",
      "method": "GET",
      "mediaType": "application/schema+json"
    }
    ]
    }
先頭に戻る