redoc/tests/schemas/responses-list-component.json

60 lines
1.1 KiB
JSON
Raw Permalink Normal View History

{
"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"
}
}
}