我是swagger编辑的新手。在编辑模式下,我已经完成了api的文档。但是在Opera,chrome,Firefox中没有启用 Designer 模式。如何在浏览器中启用此功能。以下是我在编辑模式中完成的示例。
{
"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模式做到这一点?请帮我 。