如何通过上传 API swagger 文件将 API 导入 Azure APIM
How to import API into Azure APIM by uploading API swagger file
这里应该上传什么样的文件?
您可以上传包含您的 API 规范的 JSON 或 YAML 文件,您可以找到更多信息 here。
示例 json 文件:
{
"title": "Sample Pet Store App",
"description": "This is a sample server for a pet store.",
"termsOfService": "http://example.com/terms/",
"contact": {
"name": "API Support",
"url": "http://www.example.com/support",
"email": "support@example.com"
},
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "1.0.1"
}
这里应该上传什么样的文件?
您可以上传包含您的 API 规范的 JSON 或 YAML 文件,您可以找到更多信息 here。
示例 json 文件:
{
"title": "Sample Pet Store App",
"description": "This is a sample server for a pet store.",
"termsOfService": "http://example.com/terms/",
"contact": {
"name": "API Support",
"url": "http://www.example.com/support",
"email": "support@example.com"
},
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
},
"version": "1.0.1"
}