1

我是 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 模式做到这一点?请帮我 。

4

1 回答 1

2

好吧,您在打开的github 问题中得到了答案,但是对于可能在这里看到问题的任何人来说,答案很简单,它尚未实现,因此不可用。

于 2014-12-11T07:16:53.603 回答