Created
October 18, 2024 10:06
-
-
Save fteychene/7e4d0d6dbc048128ee4df09779cc84b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.1", | |
"info": { | |
"title": "App", | |
"version": "1.0" | |
}, | |
"paths": { | |
"/weatherforecast": { | |
"get": { | |
"tags": [ | |
"App" | |
], | |
"operationId": "GetWeatherForecast", | |
"responses": { | |
"200": { | |
"description": "OK", | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "array", | |
"items": { | |
"$ref": "#/components/schemas/WeatherForecast" | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"schemas": { | |
"WeatherForecast": { | |
"type": "object", | |
"properties": { | |
"date": { | |
"type": "string", | |
"format": "date" | |
}, | |
"temperatureC": { | |
"type": "integer", | |
"format": "int32" | |
}, | |
"summary": { | |
"type": "string", | |
"nullable": true | |
}, | |
"temperatureF": { | |
"type": "integer", | |
"format": "int32", | |
"readOnly": true | |
} | |
}, | |
"additionalProperties": false | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment