{ "openapi": "3.0.3", "info": { "title": "Stroika Sample HTMLUI", "description": "", "contact": { "email": "support@sophists.com" }, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0.html" }, "version": "0.0.2" }, "externalDocs": { "description": "TBD", "url": "https://www.sophists.com" }, "servers": [ { "url": "http://[::1]:80" }, { "url": "http://localhost:80" } ], "tags": [ { "name": "about", "description": "Summary of API-Server status: component versions, thread-pool, network-connections, machine performance and I/O stats, etc..." }, { "name": "resource", "description": "Static content (such as images, files etc) baked into Stroika-Sample-HTMLUI." } ], "paths": { "/about": { "description": "Get application-server statistics.", "get": { "summary": "Get application-server statistics.", "tags": [ "about" ], "responses": { "200": { "description": "Successful operation", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/About" } } } } } } }, "/resource/{id}": { "get": { "tags": [ "resource" ], "parameters": [ { "name": "id", "in": "path", "schema": { "type": "string" }, "required": true } ], "responses": { "200": { "description": "Successful operation" } } } } }, "components": { "schemas": { "About": { "type": "object", "properties": { "applicationVersion": { "type": "object", "properties": { "URL": { "type": "string" }, "name": { "type": "string" }, "version": { "type": "string" } }, "required": [ "URL", "name", "version" ] }, "serverInfo": { "type": "object", "properties": { "version": { "type": "string" }, "componentVersions": { "type": "array", "items": {} }, "currentMachine": { "type": "object", "properties": { "operatingSystem": { "type": "object", "properties": { "majorOSCategory": { "type": "string" }, "fullVersionedName": { "type": "string" } }, "required": [ "majorOSCategory", "fullVersionedName" ] }, "machineUptime": { "type": "string" }, "totalCPUUsage": { "type": "number" }, "runQLength": { "type": "integer" } }, "required": [ "operatingSystem", "machineUptime", "totalCPUUsage", "runQLength" ] }, "currentProcess": { "type": "object", "properties": { "processUptime": { "type": "string" }, "averageCPUTimeUsed": { "type": "number" }, "workingOrResidentSetSize": { "type": "integer" }, "combinedIOReadRate": { "type": "integer" }, "combinedIOWriteRate": { "type": "number" } }, "required": [ "processUptime", "averageCPUTimeUsed", "workingOrResidentSetSize", "combinedIOReadRate", "combinedIOWriteRate" ] }, "apiEndpoint": { "type": "object", "properties": { "callsCompleted": { "type": "integer" }, "errors": { "type": "integer" }, "meanDuration": { "type": "string" }, "medianDuration": { "type": "string" }, "maxDuration": { "type": "string" }, "medianProcessingWebServerConnections": { "type": "integer" }, "medianWebServerConnections": { "type": "integer" }, "medianRunningAPITasks": { "type": "integer" } }, "required": [ "callsCompleted", "errors", "meanDuration", "medianDuration", "maxDuration", "medianProcessingWebServerConnections", "medianWebServerConnections", "medianRunningAPITasks" ] }, "webServer": { "type": "object", "properties": { "threadPool": { "type": "object", "properties": { "threads": { "type": "integer" }, "tasksStillQueued": { "type": "integer" }, "averageTaskRunTime": { "type": "string" } }, "required": [ "threads", "tasksStillQueued", "averageTaskRunTime" ] } }, "required": [ "threadPool" ] }, "database": {} }, "required": [ "version", "componentVersions", "currentMachine", "currentProcess", "apiEndpoint", "webServer" ] } }, "required": [ "applicationVersion", "serverInfo" ] } }, "requestBodies": {}, "securitySchemes": { "oauth2": { "type": "oauth2", "flows": { "implicit": { "authorizationUrl": "https://petstore3.swagger.io/oauth/authorize", "scopes": { "write:pets": "modify pets in your account", "read:pets": "read your pets" } } } }, "api_key": { "type": "apiKey", "name": "api_key", "in": "header" } } } }