{ "openapi": "3.1.1", "info": { "title": "api | v1", "version": "1.0.0" }, "paths": { "/CrmRecords": { "get": { "tags": [ "CrmRecords" ], "operationId": "GetCrmRecords", "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CrmRecord" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CrmRecord" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/CrmRecord" } } } } } } } }, "/WeatherForecast": { "get": { "tags": [ "WeatherForecast" ], "summary": "Gets the weather forecast for the next 5 days.", "operationId": "GetWeatherForecast", "responses": { "200": { "description": "The weather forecast for the next 5 days.", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WeatherForecast" } } } } } } } } }, "components": { "schemas": { "CrmRecord": { "type": "object", "properties": { "id": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "name": { "type": "string" }, "email": { "type": "string" }, "status": { "$ref": "#/components/schemas/CrmRecordStatus" } } }, "CrmRecordStatus": { "enum": [ "Active", "Inactive", "Pending" ] }, "WeatherForecast": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "temperatureC": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "temperatureF": { "pattern": "^-?(?:0|[1-9]\\d*)$", "type": [ "integer", "string" ], "format": "int32" }, "summary": { "type": [ "null", "string" ] } } } } }, "tags": [ { "name": "CrmRecords" }, { "name": "WeatherForecast" } ] }