{ "openapi": "3.0.0", "info": { "title": "Advice Generator", "version": "1", "description": "Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.", "contact": { "name": "APIVerve", "url": "https://apiverve.com", "email": "support@apiverve.com" }, "license": { "name": "MIT", "url": "https://opensource.org/licenses/MIT" } }, "servers": [ { "url": "https://api.apiverve.com", "description": "Production server" } ], "security": [ { "ApiKeyAuth": [] } ], "paths": { "/v1/advice": { "get": { "summary": "Advice Generator", "description": "Advice Generator is a simple tool for generating random pieces of advice. It returns a random piece of advice.", "operationId": "advice", "tags": [ 11 ], "parameters": [], "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": { "type": "string", "example": "ok" }, "data": { "type": "object" } } } } } }, "400": { "description": "Bad Request - Invalid parameters" }, "401": { "description": "Unauthorized - Invalid or missing API key" }, "429": { "description": "Too Many Requests - Rate limit exceeded" } } } } }, "components": { "securitySchemes": { "ApiKeyAuth": { "type": "apiKey", "in": "header", "name": "x-api-key" } }, "schemas": {} } }