@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.
359 lines • 9.08 kB
JSON
{
"swagger": "2.0",
"info": {
"title": "AutoRest Integer Test Service",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0"
},
"host": "localhost:3000",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {
"/int/null": {
"get": {
"operationId": "int_getNull",
"description": "Get null Int value",
"responses": {
"200": {
"description": "The null int value",
"schema": {
"type": "integer"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/invalid": {
"get": {
"operationId": "int_getInvalid",
"description": "Get invalid Int value",
"responses": {
"200": {
"description": "The invalid int value",
"schema": {
"type": "integer"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/overflowint32": {
"get": {
"operationId": "int_getOverflowInt32",
"description": "Get overflow Int32 value",
"responses": {
"200": {
"description": "The overflow Int32 value",
"schema": {
"type": "integer",
"format": "int32"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/underflowint32": {
"get": {
"operationId": "int_getUnderflowInt32",
"description": "Get underflow Int32 value",
"responses": {
"200": {
"description": "The underflow Int32 value",
"schema": {
"type": "integer",
"format": "int32"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/overflowint64": {
"get": {
"operationId": "int_getOverflowInt64",
"description": "Get overflow Int64 value",
"responses": {
"200": {
"description": "The overflow Int64 value",
"schema": {
"type": "integer",
"format": "int64"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/underflowint64": {
"get": {
"operationId": "int_getUnderflowInt64",
"description": "Get underflow Int64 value",
"responses": {
"200": {
"description": "The underflow Int64 value",
"schema": {
"type": "integer",
"format": "int64"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/max/32": {
"put": {
"operationId": "int_putMax32",
"description": "Put max int32 value",
"parameters": [
{
"name": "intBody",
"in": "body",
"schema": {
"type": "integer",
"format": "int32"
},
"required": true
}
],
"responses": {
"200": {
"description": "The max int32 value"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/max/64": {
"put": {
"operationId": "int_putMax64",
"description": "Put max int64 value",
"parameters": [
{
"name": "intBody",
"in": "body",
"schema": {
"type": "integer",
"format": "int64"
},
"required": true
}
],
"responses": {
"200": {
"description": "The max int64 value"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/min/32": {
"put": {
"operationId": "int_putMin32",
"description": "Put min int32 value",
"parameters": [
{
"name": "intBody",
"in": "body",
"schema": {
"type": "integer",
"format": "int32"
},
"required": true
}
],
"responses": {
"200": {
"description": "The min int32 value"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/min/64": {
"put": {
"operationId": "int_putMin64",
"description": "Put min int64 value",
"parameters": [
{
"name": "intBody",
"in": "body",
"schema": {
"type": "integer",
"format": "int64"
},
"required": true
}
],
"responses": {
"200": {
"description": "The min int64 value"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/unixtime": {
"get": {
"operationId": "int_getUnixTime",
"description": "Get datetime encoded as Unix time value",
"responses": {
"200": {
"description": "The date value encoded as Unix time",
"schema": {
"type": "integer",
"format": "unixtime"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"put": {
"operationId": "int_putUnixTimeDate",
"description": "Put datetime encoded as Unix time",
"parameters": [
{
"name": "intBody",
"in": "body",
"schema": {
"type": "integer",
"format": "unixtime"
},
"required": true
}
],
"responses": {
"200": {
"description": "The datetime value encoded as Unix time"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/invalidunixtime": {
"get": {
"operationId": "int_getInvalidUnixTime",
"description": "Get invalid Unix time value",
"responses": {
"200": {
"description": "The invalid Unix time value",
"schema": {
"type": "integer",
"format": "unixtime"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/int/nullunixtime": {
"get": {
"operationId": "int_getNullUnixTime",
"description": "Get null Unix time value",
"responses": {
"200": {
"description": "The null Unix time value",
"schema": {
"type": "integer",
"format": "unixtime"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"definitions": {
"Error": {
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}