82 lines
1.6 KiB
JSON
82 lines
1.6 KiB
JSON
{
|
|
"openapi": "3.1.1",
|
|
"info": {
|
|
"title": "WebAppServer1 | v1",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "http://0.0.0.0:5162"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/weatherforecast": {
|
|
"get": {
|
|
"tags": [
|
|
"WebAppServer1"
|
|
],
|
|
"operationId": "GetWeatherForecast",
|
|
"responses": {
|
|
"200": {
|
|
"description": "OK",
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"type": "array",
|
|
"items": {
|
|
"$ref": "#/components/schemas/WeatherForecast"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"components": {
|
|
"schemas": {
|
|
"WeatherForecast": {
|
|
"required": [
|
|
"date",
|
|
"temperatureC",
|
|
"summary"
|
|
],
|
|
"type": "object",
|
|
"properties": {
|
|
"date": {
|
|
"type": "string",
|
|
"format": "date"
|
|
},
|
|
"temperatureC": {
|
|
"pattern": "^-?(?:0|[1-9]\\d*)$",
|
|
"type": [
|
|
"integer",
|
|
"string"
|
|
],
|
|
"format": "int32"
|
|
},
|
|
"summary": {
|
|
"type": [
|
|
"null",
|
|
"string"
|
|
]
|
|
},
|
|
"temperatureF": {
|
|
"pattern": "^-?(?:0|[1-9]\\d*)$",
|
|
"type": [
|
|
"integer",
|
|
"string"
|
|
],
|
|
"format": "int32"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"tags": [
|
|
{
|
|
"name": "WebAppServer1"
|
|
}
|
|
]
|
|
} |