【发布时间】:2021-07-30 16:03:01
【问题描述】:
我正在构建调用端点的天蓝色管道任务。但是我不断收到错误“不支持的媒体类型 415”。这是我的代码
"dataSources": [
{
"name": "ProjectsEP",
"endpointUrl": "{{endpoint.url}}/api/project/projects",
"requestVerb": "Post",
"resultSelector": "jsonpath:",
"requestContent":"",
"headers": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
"dataSourceBindings": [
{
"target": "project",
"endpointId": "$(FabrikamService)",
"dataSourceName": "ProjectsEP",
"requestVerb": "Post"
}]
我需要将内容类型更改为“application/json”。
我在这里错过了什么?
【问题讨论】:
标签: azure-devops azure-pipelines azure-pipelines-tasks