{
    "openapi": "3.0.3",
    "info": {
        "title": "Discovery Sites API",
        "description": "Especificação OpenAPI dos endpoints públicos e recursos de IA da Discovery Sites.",
        "version": "1.0.0",
        "contact": {
            "name": "Discovery Sites - Suporte Técnico",
            "url": "https://discoverysites.com.br/contato/",
            "email": "contato@discoverysites.com.br"
        }
    },
    "servers": [
        {
            "url": "https://discoverysites.com.br",
            "description": "Servidor Principal de Produção"
        }
    ],
    "paths": {
        "/wp-json/wp/v2/pages": {
            "get": {
                "summary": "Listar páginas públicas institucionais",
                "operationId": "listPages",
                "responses": {
                    "200": {
                        "description": "Array de páginas em formato JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "integer"
                                            },
                                            "slug": {
                                                "type": "string"
                                            },
                                            "title": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/wp/v2/posts": {
            "get": {
                "summary": "Listar artigos e publicações do blog",
                "operationId": "listPosts",
                "responses": {
                    "200": {
                        "description": "Array de posts em formato JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "id": {
                                                "type": "integer"
                                            },
                                            "slug": {
                                                "type": "string"
                                            },
                                            "title": {
                                                "type": "object"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/wp-json/mcp/mcp-adapter-default-server": {
            "post": {
                "summary": "Servidor MCP (Model Context Protocol)",
                "operationId": "mcpServerCall",
                "responses": {
                    "200": {
                        "description": "Resposta JSON-RPC 2.0 do protocolo MCP",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "jsonrpc": {
                                            "type": "string"
                                        },
                                        "result": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Autenticação requerida para ferramentas protegidas"
                    }
                }
            }
        },
        "/.well-known/ai-catalog.json": {
            "get": {
                "summary": "Catálogo Geral de IA (Agentic Resource Discovery)",
                "operationId": "getAiCatalog",
                "responses": {
                    "200": {
                        "description": "Manifesto AI Catalog em JSON",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "specVersion": {
                                            "type": "string"
                                        },
                                        "entries": {
                                            "type": "array"
                                        },
                                        "servers": {
                                            "type": "array"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/.well-known/agent-skills/index.json": {
            "get": {
                "summary": "Índice de Habilidades de Agente (Agent Skills)",
                "operationId": "getAgentSkillsIndex",
                "responses": {
                    "200": {
                        "description": "Manifesto de habilidades disponíveis",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "type": "object",
                                        "properties": {
                                            "name": {
                                                "type": "string"
                                            },
                                            "type": {
                                                "type": "string"
                                            },
                                            "url": {
                                                "type": "string"
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        },
        "/llms.txt": {
            "get": {
                "summary": "Instruções e Visão Geral para LLMs",
                "operationId": "getLlmsTxt",
                "responses": {
                    "200": {
                        "description": "Documentação em formato de texto para modelos de linguagem",
                        "content": {
                            "text/plain": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}