[英]I am trying to download data from REST API to azure data lake via azure data factory. How can I pass query parameters for API in azure data factory?
I am doing this using 'Copy Activity'.我正在使用“复制活动”来执行此操作。 Is there any other activity that can better perform this operation?
有没有其他活动可以更好地执行此操作? Example REST API URL: https://xzy.com/servicename?name=tom&age=50&city=boston& ...... I am putting ' https://xzy.com/servicename/ ' as the base URL for the linked service.
示例 REST API URL: https://xzy.com/servicename?name=tom&age=50&city=boston& ......我将“ https://xzy.com/servicename/ ”作为链接的基本 URL服务。 How to pass the query parameters 'name=tom' and 'age=50' and 'city=boston' to the base url in the azure data factory to get the response?
如何将查询参数 'name=tom' 和 'age=50' 和 'city=boston' 传递给 azure 数据工厂中的基本 url 以获得响应? Will the parameters be passed at linked service, dataset or pipeline level?
参数会在链接服务、数据集或管道级别传递吗?
It seems that your request method is Get
.您的请求方法似乎是
Get
。 You could only set the query parameters behind base url directly.您只能直接在基本 url 后面设置查询参数。
For example,i test rest api from this sample website :例如,我从这个示例网站测试了 rest api:
https://jsonplaceholder.typicode.com/comments?postId=1
Test result:测试结果:
If your request method is Post
,i suppose you have to define the parameters in the Body
part.如果您的请求方法是
Post
,我想您必须在Body
部分定义参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.