機械翻訳について

特定バージョンの取得

get

/documents/api/{version}

指定したバージョンのAPIに関する情報を取得します。 バージョン・リソースは、使用可能なすべてのバージョン、または特定のバージョンのAPI自体に関する情報を提供します。

リクエスト

サポートされるメディア・タイプ
パス・パラメータ
トップに戻る

レスポンス

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

200レスポンス

リクエストが処理されました。
本文 ()
ルート・スキーマ: VersionDefinition
タイプ: object
バージョン情報。
ソースを表示
レスポンスの例(application/json)
{
    "items":[
        {
            "version":"1.2",
            "lifecycle":"active",
            "isLatest":"true",
            "catalog":{
                "links":[
                    {
                        "ref":"canonical",
                        "href":"https://www.example.com/documents/api/1.2/metadata-catalog"
                    }
                ]
            },
            "links":[
                {
                    "ref":"canonical",
                    "href":"https://www.example.com/documents/api/1.2"
                }
            ]
        }
    ]
}
トップに戻る

次の例は、指定されたバージョンのAPIに関する情報を返します。

GET .../api/1.2

リクエスト・ヘッダー

なし。

リクエスト本文

なし。

HTTPステータス・コード

HTTP_STATUS = 200

JSONレスポンス

{
    "version": "1.2",
    "lifecycle": "active",
    "isLatest": true,
    "catalog": {
        "links": [
            {
                "ref": "canonical",
                "href": "https://www.example.com/documents/api/1.2/metadata-catalog"
            }
        ]
    },
    "links": [
        {
            "ref": "canonical",
            "href": "https://www.example.com/documents/api/1.2"
        }
    ]
}
先頭に戻る