機械翻訳について

品目バリエーションの品目の取得

get

/content/published/api/v1.1/items/{id}/variations/{varType}/{varValue}

バリエーション・タイプおよびバリエーション値によって指定されたアイテム・バリエーションのアイテムを取得します。

リクエスト

パス・パラメータ
問合せパラメータ
  • パブリッシュ・ターゲットのチャネル・トークン。 チャネル・トークンは、問合せパラメータまたはリクエスト・ヘッダーのいずれかとして提供する必要があります。
  • Expandパラメータは、子リソース(参照アイテム)をアイテム・レスポンスとインラインで取得するオプションを提供します。 フィールド名またはallのコンマ区切りリストを受け入れます。 すべてのユーザー定義フィールド名にプレフィクスfieldsを付け、その後にピリオド(。)を付ける必要があります。 これらのフィールドが参照タイプである場合、リソースはレスポンス内でデータをインライン展開します。 フィールド名は大文字と小文字を区別します。 expandがall (小文字)として指定されると、リクエストされたアイテムの参照タイプのすべてのフィールドが展開されます。 展開が指定されていない場合、アイテム・レスポンスには参照されたアイテムへのリンクが含まれます。
    このフォームの展開は1つのレベルのみでサポートされています。参照先フィールドの最初のレベルを超えて拡張するリクエストは、HTTP 400レスポンスを生成します。
    展開に、リクエストされたアイテムの型定義に従って存在しないフィールドが含まれている場合、リソースはHTTP 400を生成します。
    例:
      expand=fields.field1,fields.field2
      expand=all
    ここで、field1、field2は、このアイテムが属するタイプのユーザー定義フィールドの名前です。
トップに戻る

レスポンス

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

200レスポンス

OK。
本文()
ルート・スキーマ : アイテム
型: object
Item
Show Source
ネストされたスキーマ : createdDate
型: object
アイテムの作成日。 Map having value, timezone, and description
ネストされたスキーマ: fields
型: object
使用可能なその他のプロパティ
Show Source
ユーザー定義フィールドのデータ。 Map
ネストされたスキーマ : itemVariations
型: array
Show Source
ネストされたスキーマ : RenditionsBean
型: object
Show Source
ネストされたスキーマ : TaxonomiesBean
型: object
Show Source
ネストされたスキーマ : updatedDate
型: object
アイテムの最終更新日。 Map having value, timezone, and description
ネストされたスキーマ : additionalProperties
型: object
ネストされたスキーマ : ItemVariation
型: object
Show Source
ネストされたスキーマ: items
型: array
アイテム・レンディション。
Show Source
ネストされたスキーマ : RenditionBean
型: object
Show Source
ネストされたスキーマ: formats
型: array
Show Source
ネストされたスキーマ : RenditionFormatBean
型: object
Show Source
ネストされたスキーマ: items
型: array
アイテム・タクソノミ。
Show Source
ネストされたスキーマ : TaxonomyItem
型: object
TaxonomyItem
Show Source
ネストされたスキーマ : TaxonomyCategories
型: object
CategoriesBean
Show Source
ネストされたスキーマ: items
型: array
タクソノミ・カテゴリ
Show Source
ネストされたスキーマ : CategoryItem
型: object
CategoryItem
Show Source
ネストされたスキーマ : nodes
型: array
品目に割り当てられたカテゴリのノード。
Show Source
ネストされたスキーマ : CategoryNodeItem
型: object
CategoryNodeBean
Show Source

400レスポンス

不正リクエスト。 サーバーは、不正な構文、無効なデータまたはメッセージ・フレーミングのために、クライアント側でリクエストを処理できません。

403レスポンス

禁止。

404レスポンス

見つかりません。

500レスポンス

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

次の例は、IDを持つ公開済アイテム・タイプの特定の言語バリエーションを読み取る方法を示しています。

curl -i -X GET -H "Accept:application/json" 'http://<hostname>/content/published/api/v1.1/items/{id}/variations/{varType}/{varValue}'
例1

IDを持つ公開済アイテムの特定の言語バリエーション(fr)を読み取ります: COREAB9F07B838004C17BD168DA317F3D2BE、channelToken: f60f162cd91243bab0aa0544668ab184。

/content/published/api/v1.1/items/COREAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184

レスポンス本文

{
        "id": "CORE706541CFA5974657AD0298077D70F375",
        "type": "Test116269655126007",
        "name": "test116276480961009_fr",
        "description": "test116276480961009_fr",
        "typeCategory": "ContentType",
        "slug": "1481786138118-test116276480961009_fr",
        "language": "fr",
        "translatable": true,
        "createdDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "updatedDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "fileExtension": "contentItem",
        "mimeType": "contentItem",
        "fileGroup": "contentItem",
        "fields": {
          "Test116269547310005": {
            "id": "COREFA1B111F785A4DBEA7E77E52AF42A44B",
            "type": "Test116219564978003",
            "name": "Test116326198122003",
            "typeCategory": "ContentType",
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138099-test116326198122003?channelToken=f60f162cd91243bab0aa0544668ab184",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        },
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
例2

IDを持つ公開済アイテムの特定の言語バリエーション(fr)を読み取ります: COREAB9F07B838004C17BD168DA317F3D2BE、channelToken: 名前を持つ拡張フィールドを持つf60f162cd91243bab0aa0544668ab184: Test116269547310005。

/content/published/api/v1.1/items/COREAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?expand=fields.Test116269547310005&channelToken=f60f162cd91243bab0aa0544668ab184

レスポンス本文

{
        "id": "CORE706541CFA5974657AD0298077D70F375",
        "type": "Test116269655126007",
        "name": "test116276480961009_fr",
        "description": "test116276480961009_fr",
        "typeCategory": "ContentType",
        "slug": "1481786138118-test116276480961009_fr",
        "language": "fr",
        "translatable": true,
        "createdDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "updatedDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "fileExtension": "contentItem",
        "mimeType": "contentItem",
        "fileGroup": "contentItem",
        "fields": {
          "Test116269547310005": {
            "id": "COREFA1B111F785A4DBEA7E77E52AF42A44B",
            "type": "Test116219564978003",
            "name": "Test116326198122003",
            "description": "Test116326198198004",
            "slug": "1481786138099-test116326198122003",
            "language": "fr",
            "translatable": false,
            "createdDate": {
              "value": "2020-07-07T05:28:35.324Z",
              "timezone": "UTC"
            },
            "updatedDate": {
              "value": "2020-07-07T05:28:35.324Z",
              "timezone": "UTC"
            },
            "mimeType": "contentItem",
            "fileGroup": "contentItem",
            "fields": {
              "Test116219132928001": "test"
            },
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138099-test116326198122003?channelToken=f60f162cd91243bab0aa0544668ab184",
                "rel": "self",
                "method": "GET",
                "mediaType": "application/json"
              }
            ]
          }
        },
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184&expand=fields.Test116269547310005",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184&expand=fields.Test116269547310005",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/.by.slug/1481786138108-test116276480961009_en-us/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
例3

IDを持つ公開済アイテムの特定の言語バリエーション(fr)を読み取ります : CONTAB9F07B838004C17BD168DA317F3D2BE、channelToken:f60f162cd91243bab0aa0544668ab184。

/content/published/api/v1.1/items/CONTAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184

レスポンス本文

{
        "id": "CONT706541CFA5974657AD0298077D70F375",
        "type": "Test116269655126007",
        "name": "Test522387760830005.jpg",
        "description": "test116276480961009_fr",
        "typeCategory": "DigitalAssetType",
        "slug": "1481786138118-test116276480961009_fr",
        "language": "fr",
        "translatable": true,
        "createdDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "updatedDate": {
          "value": "2020-07-07T05:28:35.324Z",
          "timezone": "UTC"
        },
        "fileExtension": "jpg",
        "mimeType": "contentItem",
        "fileGroup": "contentItem",
        "fields": {
          "metadata": {
            "width": "5",
            "height": "5"
          },
          "size": 631,
          "native": {
            "links": [
              {
                "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/native/Test522387760830005.jpg?channelToken=f573b68c764a44f9bae0627140d8b0bd",
                "rel": "self",
                "method": "GET",
                "mediaType": "image/jpeg"
              }
            ]
          },
          "renditions": [
            {
              "name": "Thumbnail",
              "formats": [
                {
                  "format": "jpg",
                  "size": 631,
                  "mimeType": "image/jpeg",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Thumbnail/Test522387760830005.jpg?format=jpg&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/jpeg"
                    }
                  ]
                },
                {
                  "format": "webp",
                  "size": 0,
                  "mimeType": "image/webp",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Thumbnail/Test522387760830005.jpg?format=webp&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/webp"
                    }
                  ]
                }
              ],
              "type": "responsiveimage"
            },
            {
              "name": "Medium",
              "formats": [
                {
                  "format": "jpg",
                  "size": 631,
                  "mimeType": "image/jpeg",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Medium/Test522387760830005.jpg?format=jpg&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/jpeg"
                    }
                  ]
                },
                {
                  "format": "webp",
                  "size": 0,
                  "mimeType": "image/webp",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Medium/Test522387760830005.jpg?format=webp&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/webp"
                    }
                  ]
                }
              ],
              "type": "responsiveimage"
            },
            {
              "name": "Large",
              "formats": [
                {
                  "format": "jpg",
                  "size": 631,
                  "mimeType": "image/jpeg",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Large/Test522387760830005.jpg?format=jpg&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/jpeg"
                    }
                  ]
                },
                {
                  "format": "webp",
                  "size": 0,
                  "mimeType": "image/webp",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Large/Test522387760830005.jpg?format=webp&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/webp"
                    }
                  ]
                }
              ],
              "type": "responsiveimage"
            },
            {
              "name": "Small",
              "formats": [
                {
                  "format": "jpg",
                  "size": 631,
                  "mimeType": "image/jpeg",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Small/Test522387760830005.jpg?format=jpg&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/jpeg"
                    }
                  ]
                },
                {
                  "format": "webp",
                  "size": 0,
                  "mimeType": "image/webp",
                  "metadata": {
                    "width": "5",
                    "height": "5"
                  },
                  "links": [
                    {
                      "href": "https://<hostname>/content/published/api/v1.1/assets/CONTAB9F07B838004C17BD168DA317F3D2BE/Small/Test522387760830005.jpg?format=webp&type=responsiveimage&channelToken=f573b68c764a44f9bae0627140d8b0bd",
                      "rel": "self",
                      "method": "GET",
                      "mediaType": "image/webp"
                    }
                  ]
                }
              ],
              "type": "responsiveimage"
            }
          ],
          "mimeType": "image/jpeg",
          "fileType": "jpeg"
        },
        "links": [
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/CONTAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/items/CONTAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/published/api/v1.1/metadata-catalog/items/CONTAB9F07B838004C17BD168DA317F3D2BE/variations/language/fr?channelToken=f60f162cd91243bab0aa0544668ab184",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
    }
トップに戻る