@microsoft.azure/autorest.testserver
Version:
Autorest test server.
84 lines (83 loc) • 2.34 kB
JSON
{
"swagger": "2.0",
"info": {
"title": "AutoRest Head Test Service",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0"
},
"host": "localhost:3000",
"schemes": ["http"],
"produces": ["application/json"],
"consumes": ["application/json"],
"paths": {
"/http/success/200": {
"head": {
"operationId": "httpSuccess_head200",
"description": "Return 200 status code if successful",
"x-ms-examples": {
"httpSuccess_head200": {
"$ref": "./examples/httpSuccess_head200.json"
}
},
"tags": ["HttpSuccess Operations"],
"responses": {
"200": {
"description": "Successfully returns the true boolean value"
},
"404": {
"description": "Successfully returns the false boolean value"
},
"default": {
"description": "Unexpected error"
}
}
}
},
"/http/success/204": {
"head": {
"operationId": "httpSuccess_head204",
"description": "Return 204 status code if successful",
"x-ms-examples": {
"httpSuccess_head204": {
"$ref": "./examples/httpSuccess_head204.json"
}
},
"tags": ["HttpSuccess Operations"],
"responses": {
"204": {
"description": "Successfully returns the true boolean value"
},
"404": {
"description": "Successfully returns the false boolean value"
},
"default": {
"description": "Unexpected error"
}
}
}
},
"/http/success/404": {
"head": {
"operationId": "httpSuccess_head404",
"description": "Return 404 status code if successful",
"x-ms-examples": {
"httpSuccess_head404": {
"$ref": "./examples/httpSuccess_head404.json"
}
},
"tags": ["HttpSuccess Operations"],
"responses": {
"204": {
"description": "Successfully returns the true boolean value"
},
"404": {
"description": "Successfully returns the false boolean value"
},
"default": {
"description": "Unexpected error"
}
}
}
}
}
}