简体   繁体   English

如何通过上传 API swagger 文件将 API 导入 Azure APIM

[英]How to import API into Azure APIM by uploading API swagger file

在此处输入图片说明

What kind of file should be uploaded here?这里应该上传什么样的文件?

You can upload a JSON or YAML file that contains your API specification, you can find more info here .您可以上传包含您的 API 规范的 JSON 或 YAML 文件,您可以在此处找到更多信息。

Exemplary json file:示例 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"
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM