{
    "openapi": "3.0.0",
    "info": {
        "title": "PDV ERP SaaS API",
        "description": "API REST multiempresa — autenticação, PDV, estoque, financeiro",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "/api/v1",
            "description": "API v1"
        }
    ],
    "paths": {
        "/auth/login": {
            "post": {
                "tags": [
                    "Auth"
                ],
                "summary": "Login com JWT",
                "operationId": "2b0e80263dd71562555f47e55869685e",
                "responses": {
                    "200": {
                        "description": "Tokens gerados"
                    }
                }
            }
        },
        "/auth/register-company": {
            "post": {
                "tags": [
                    "Auth"
                ],
                "summary": "Registrar empresa e dono",
                "operationId": "c776ba61a39bc5fb74d5ee1580265cc8",
                "responses": {
                    "201": {
                        "description": "Empresa criada"
                    }
                }
            }
        },
        "/auth/refresh": {
            "post": {
                "tags": [
                    "Auth"
                ],
                "summary": "Renovar access token",
                "operationId": "ff1a97f4ed852018ab96b24877ce0883",
                "responses": {
                    "200": {
                        "description": "Token renovado"
                    }
                }
            }
        },
        "/auth/logout": {
            "post": {
                "tags": [
                    "Auth"
                ],
                "summary": "Logout",
                "operationId": "a471cd5f178f6dbc98c40d377fd63dcf",
                "responses": {
                    "200": {
                        "description": "Logout ok"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        },
        "/auth/me": {
            "get": {
                "tags": [
                    "Auth"
                ],
                "summary": "Perfil autenticado",
                "operationId": "76600287a47cccd4f17470b96e1f7480",
                "responses": {
                    "200": {
                        "description": "Dados do usuário"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "bearerFormat": "JWT",
                "scheme": "bearer"
            }
        }
    },
    "tags": [
        {
            "name": "Auth",
            "description": "Auth"
        }
    ]
}