我是 swagger 编辑器的新手。在编辑模式下,我已经很好地完成了 api 文档。但是在 opera、chrome、Firefox 中没有启用设计器模式。如何在我的浏览器中启用此功能。?这是我在编辑器模式下完成的示例。
{
"swagger": "2.0",
"info": {
"title": "Uber API",
"version": "1.0.0"
},
"host": "api.uber.com",
"schemes": [
"https"
],
"basePath": "/v1",
"produces": [
"application/json"
],
"paths": {
"/products": {
"get": {
"summary": "Product Types",
"description": " test",
"parameters": [
{
"name": "longitude",
"in": "query",
"description": "Longitude component of location.",
"required": true,
"type": "number",
"format": "double"
}
],
"tags": [
"Products"
],
"responses": {
"200": {
"description": "An array of products"
},
"default": {
"description": "Unexpected error"
}
}
}
}
}}
如何使用 Desinger 模式做到这一点?请帮我 。