如何通过邮递员调用REST API在Azure中创建索引? [英] How to call REST API through postman to create index in Azure?

查看:95
本文介绍了如何通过邮递员调用REST API在Azure中创建索引?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,在这里我需要调用与创建数据源相关的REST API,如下所述: https://docs.microsoft. com/en-us/azure/search/search-howto-indexing-azure-blob-storage

I am creating an application where I need to call REST API related to create data source as mentioned here: https://docs.microsoft.com/en-us/azure/search/search-howto-indexing-azure-blob-storage

这是我提出要求的方式:

Here is how I am making my request :

我遇到以下错误:

{
    "error": {
        "code": "",
        "message": "The request is invalid. Details: index : The property 'type' does not exist on type 'Microsoft.Azure.Search.V2016_09_01.IndexDefinition'. Make sure to only use property names that are defined by the type.\r\n"
    }
}

我应该怎么做才能正确设置类型"?

What should I do so that 'type' can be set correctly?

推荐答案

您要发布到错误的URL,请尝试以下

You're posting to the wrong URL try the following

https://[service name].search.windows.net/datasources?api-version=2016-09-01

这篇关于如何通过邮递员调用REST API在Azure中创建索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆