mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-23 00:56:33 +03:00
9d0dd25f30
closes #197
60 lines
1.1 KiB
JSON
60 lines
1.1 KiB
JSON
{
|
|
"swagger": "2.0",
|
|
"info": {
|
|
},
|
|
"host": "petstore.swagger.io",
|
|
"basePath": "/v2/",
|
|
"tags": [{
|
|
"name": "traitTag",
|
|
"x-traitTag": true,
|
|
"description": "description1"
|
|
},{
|
|
"name": "tag1",
|
|
"description": "tag1",
|
|
}],
|
|
"schemes": ["http"],
|
|
"paths": {
|
|
"/test1": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "successful operation",
|
|
"schema": {
|
|
"$ref": "#/definitions/def1"
|
|
}
|
|
},
|
|
"201": {
|
|
"description": "successful operation",
|
|
"schema": {
|
|
"$ref": "#/definitions/def1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"/test2": {
|
|
"get": {
|
|
"responses": {
|
|
"200": {
|
|
"description": "successful operation",
|
|
"schema": {
|
|
"$ref": "#/definitions/def1"
|
|
}
|
|
},
|
|
"default": {
|
|
"description": "successful operation",
|
|
"schema": {
|
|
"$ref": "#/definitions/def1"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
"definitions": {
|
|
"def1": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|