2016-10-03 6 views
0

this blogreference documentation의 단계에 따라 Azure API Managment의 REST API를 통해 Swagger 정의를 가져 오려고합니다. 그러나, 나는 몸으로, 응답 500 오류를 받고 있어요 :Azure API 관리가 Swagger 정의를 푸시하는 동안 InternalServerError를 반환합니다.

{ 
    "error": { 
    "code": "InternalServerError", 
    "message": "Request processing failed due to internal error.", 
    "details": null 
    } 
} 

내 요구는 아니지만 PUT를 들어, GET 작동합니다. 누구든지 내 요청이나 잠재적 인 설치 문제에 대해 조사해야 할 부분을 지적 할 수 있습니까?

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

"링크"값 즉, 스키마를 포함 시작해야 "HTTP : //"또는 "https : //"

내가 보내고있어 요청입니다. 보다 의미있는 오류 메시지를 제공하기 위해이 문제를 해결할 것입니다.

+0

U_U * headdesk * 정말 고마워요. –