我正在尝试按照this blog和reference documentation上的步骤,通过Azure API Managment的REST API导入Swagger定义。但是,我的身体反应出现了500错误:
{
"error": {
"code": "InternalServerError",
"message": "Request processing failed due to internal error.",
"details": null
}
}
我的请求适用于GET,但不适用于PUT。任何人都可以指出我的请求或我应该研究的潜在设置问题有什么问题吗?
这是我发送的请求:
PUT /apis/{app-id}?api-version=2014-02-14-preview&import=true HTTP/1.1
Host: {tenant}.management.azure-api.net
Authorization: SharedAccessSignature uid={uid}&ex={ex}&sn={sn}
Content-Type: application/vnd.swagger.link+json
If-Match: *
Cache-Control: no-cache
{
"link": "{app}.cloudapp.azure.com:8165/swagger/docs/0"
}
答案 0 :(得分:0)
“link”值应包含架构,即以“http://”或“https://”开头。我们将解决此问题,以提供更有意义的错误消息。