0

我可以使用资产 URL(ADC 中表的位置)来注释表的描述。

我正在使用的 Http 请求是:

{table_location_url}/descriptions?api-version=2016-03-30

Json 对象是:

    private static string DescriptionJson(string description)
    {
        return string.Format(@"
        {{
            ""properties"" : {{
                ""key"": ""{0}"",
                ""fromSourceSystem"": false,
                ""description"": ""{1}""
            }}
        }}
        ", Guid.NewGuid().ToString("N"), description);
    }

表的注释描述成功。

现在我正在尝试使用注释列的标签,

    Http request:  {table_location_url}/columnTags?api-version=2016-03-30

    static string SampleAnnotationJson(string name)
    {
        return string.Format(@"
        {{
            ""properties"" : {{                    
                ""key"": ""{0}"",
                ""fromSourceSystem"": false,
                ""columnName"": ""on_hold_text_key"",
                ""termId"": ""https://1194df16-3ae0-49aa-b48b-5c4da6e13689-imss-data-catalog.api.datacatalog.azure.com/catalogs/IMSS-Data-Catalog/glossaries/IMSS-Data-Catalog/terms/4b8fe89d-c92a-4aee-abe1-691a2cd52458"",
             }}             
        ", Guid.NewGuid().ToString("N"));
    }

我收到错误的请求错误 r(400)。

我错过了什么吗?

4

1 回答 1

1

问题在于 json 请求,花括号没有正确关闭。它适用于更正。

于 2016-12-26T09:56:23.307 回答