autorest.azure-functions-py.../test/data/swagger/body-datetime-rfc1123.json

246 строки
6.7 KiB
JSON

{
"swagger": "2.0",
"info": {
"title": "AutoRest RFC1123 DateTime Test Service",
"description": "Test Infrastructure for AutoRest",
"version": "1.0.0"
},
"host": "localhost:3000",
"schemes": [
"http"
],
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"paths": {
"/datetimerfc1123/null": {
"get": {
"operationId": "datetimerfc1123_getNull",
"description": "Get null datetime value",
"x-ms-examples": {
"datetimerfc1123_getNull": {
"$ref": "./examples/datetimerfc1123_getNull.json"
}
},
"responses": {
"200": {
"description": "The null datetime value",
"schema": {
"type": "string",
"format": "date-time-rfc1123",
"x-nullable": true
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/invalid": {
"get": {
"operationId": "datetimerfc1123_getInvalid",
"description": "Get invalid datetime value",
"responses": {
"200": {
"description": "The invalid datetime value",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/overflow": {
"get": {
"operationId": "datetimerfc1123_getOverflow",
"description": "Get overflow datetime value",
"responses": {
"200": {
"description": "The overflow datetime value",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/underflow": {
"get": {
"operationId": "datetimerfc1123_getUnderflow",
"description": "Get underflow datetime value",
"responses": {
"200": {
"description": "The underflow datetime value",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/max": {
"put": {
"operationId": "datetimerfc1123_putUtcMaxDateTime",
"description": "Put max datetime value Fri, 31 Dec 9999 23:59:59 GMT",
"parameters": [
{
"name": "datetimeBody",
"description": "datetime body",
"in": "body",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
},
"required": true
}
],
"responses": {
"200": {
"description": "The max datetime value Fri, 31 Dec 9999 23:59:59 GMT"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/max/lowercase": {
"get": {
"operationId": "datetimerfc1123_getUtcLowercaseMaxDateTime",
"description": "Get max datetime value fri, 31 dec 9999 23:59:59 gmt",
"responses": {
"200": {
"description": "The max datetime value fri, 31 dec 9999 23:59:59 gmt",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/max/uppercase": {
"get": {
"operationId": "datetimerfc1123_getUtcUppercaseMaxDateTime",
"description": "Get max datetime value FRI, 31 DEC 9999 23:59:59 GMT",
"responses": {
"200": {
"description": "The max datetime value FRI, 31 DEC 9999 23:59:59 GMT",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
},
"/datetimerfc1123/min": {
"put": {
"operationId": "datetimerfc1123_putUtcMinDateTime",
"description": "Put min datetime value Mon, 1 Jan 0001 00:00:00 GMT",
"parameters": [
{
"name": "datetimeBody",
"description": "datetime body",
"in": "body",
"schema": {
"type": "string",
"format": "date-time-rfc1123"
},
"required": true
}
],
"responses": {
"200": {
"description": "The min datetime value Mon, 1 Jan 0001 00:00:00 GMT"
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
},
"get": {
"operationId": "datetimerfc1123_getUtcMinDateTime",
"description": "Get min datetime value Mon, 1 Jan 0001 00:00:00 GMT",
"responses": {
"200": {
"description": "The min datetime value Mon, 1 Jan 0001 00:00:00 GMT",
"schema": {
"type": "string",
"format": "date-time-rfc1123",
"enum": [
"Sun, 1 Jan 0001 00:00:00 GMT"
]
}
},
"default": {
"description": "Unexpected error",
"schema": {
"$ref": "#/definitions/Error"
}
}
}
}
}
},
"definitions": {
"Error": {
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
}
}
}
}
}