{ "openapi": "3.0.0", "info": { "title": "Hello GenAI API (Rust)", "version": "1.0.0" }, "paths": { "/api/chat": { "post": { "summary": "Chat with the LLM", "requestBody": { "required": true, "content": { "application/json": { "schema": { "type": "object", "properties": { "message": {"type": "string"} }, "required": ["message"] } } } }, "responses": { "200": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", "properties": { "response": {"type": "string"} } } } } }, "400": {"description": "Invalid input"}, "429": {"description": "Rate limit exceeded"}, "500": {"description": "LLM API error"} } } }, "/health": { "get": { "summary": "Health check", "responses": { "200": { "description": "Health status", "content": { "application/json": { "schema": { "type": "object", "properties": { "status": {"type": "string"}, "timestamp": {"type": "string"} } } } } } } } }, "/example": { "get": { "summary": "Get example structured response", "responses": { "200": { "description": "Example markdown", "content": { "application/json": { "schema": { "type": "object", "properties": { "response": {"type": "string"} } } } } } } } } } }