@microsoft.azure/autorest.testserver
Version:
This project contains a set of OpenAPI definitions and a server implementing the corresponding API. Use this to test compliance of AutoRest generators.
77 lines (76 loc) • 2.61 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",
"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",
"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",
"tags": [
"HttpSuccess Operations"
],
"responses": {
"204": {
"description": "Successfully returns the true boolean value"
},
"404": {
"description": "Successfully returns the false boolean value"
},
"default": {
"description": "Unexpected error"
}
}
}
}
}
}