{
    "openapi": "3.0.0",
    "info": {
        "title": "Liga de baseball PR",
        "version": "1.0"
    },
    "servers": [
        {
            "url": "https://liga-pr.axterdesarrollos.com.ar/"
        }
    ],
    "paths": {
        "/api/articles": {
            "get": {
                "tags": [
                    "Articles"
                ],
                "summary": "Obtener todos los artículos",
                "description": "Este endpoint devuelve una lista de todos los artículos que se muestran en la página de inicio.",
                "operationId": "getArticles",
                "responses": {
                    "200": {
                        "description": "Artículos obtenidos con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Artículos obtenidos con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "title": {
                                                        "type": "string",
                                                        "example": "Título del artículo"
                                                    },
                                                    "body": {
                                                        "type": "string",
                                                        "example": "Contenido del artículo"
                                                    },
                                                    "type": {
                                                        "type": "string",
                                                        "example": "Tipo de artículo"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/contact": {
            "post": {
                "tags": [
                    "Contacts"
                ],
                "summary": "Enviar mensaje de contacto",
                "description": "Este endpoint permite enviar un mensaje de contacto.",
                "operationId": "storeContact",
                "requestBody": {
                    "description": "Datos del mensaje de contacto",
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "type": "string",
                                        "example": "John Doe"
                                    },
                                    "email": {
                                        "type": "string",
                                        "example": "johndoe@example.com"
                                    },
                                    "message": {
                                        "type": "string",
                                        "example": "Hola, quiero obtener más información."
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Mensaje enviado exitosamente",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje enviado con éxito"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "422": {
                        "description": "Error de validación",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Error de validación."
                                        },
                                        "data": {
                                            "properties": {
                                                "field_name": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string",
                                                        "example": "El campo 'CAMPO' es requerido."
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Internal server error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/support": {
            "post": {
                "tags": [
                    "Support"
                ],
                "summary": "Envía un correo de soporte",
                "operationId": "09d03722d21f56d50310da0a3c0caf21",
                "requestBody": {
                    "content": {
                        "application/json": {
                            "schema": {
                                "properties": {
                                    "name": {
                                        "description": "Nombre del remitente",
                                        "type": "string",
                                        "example": "John Doe"
                                    },
                                    "os": {
                                        "description": "Sistema Operativo del remitente",
                                        "type": "string",
                                        "enum": [
                                            "android",
                                            "iOS"
                                        ],
                                        "example": "android"
                                    },
                                    "bug": {
                                        "description": "Descripción del bug encontrado",
                                        "type": "string",
                                        "example": "Descripción del bug"
                                    }
                                },
                                "type": "object"
                            }
                        }
                    }
                },
                "responses": {
                    "200": {
                        "description": "Soporte enviado con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Soporte enviado con éxito"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Error interno del servidor"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/games/next-game": {
            "get": {
                "tags": [
                    "Games"
                ],
                "summary": "Obtener el próximo partido",
                "description": "Este endpoint devuelve el próximo partido de la base de datos.",
                "operationId": "getNextGame",
                "responses": {
                    "200": {
                        "description": "Próximo partido obtenido con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Próximo partido obtenido con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "scheduled": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "start": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "home_name": {
                                                        "type": "string"
                                                    },
                                                    "home_shortname": {
                                                        "type": "string"
                                                    },
                                                    "visitor_name": {
                                                        "type": "string"
                                                    },
                                                    "visitor_shortname": {
                                                        "type": "string"
                                                    },
                                                    "home_team": {
                                                        "properties": {
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "shortname": {
                                                                "type": "string"
                                                            },
                                                            "shield_url": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    },
                                                    "visitor_team": {
                                                        "properties": {
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "shortname": {
                                                                "type": "string"
                                                            },
                                                            "shield_url": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/games/by-date": {
            "post": {
                "tags": [
                    "Games"
                ],
                "summary": "Obtener partidos por fecha",
                "description": "Este endpoint devuelve una lista de partidos filtrados por fecha.",
                "operationId": "gamesByDate",
                "parameters": [
                    {
                        "name": "month",
                        "in": "query",
                        "description": "Número del mes a filtrar.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "string",
                            "example": "07"
                        }
                    },
                    {
                        "name": "year",
                        "in": "query",
                        "description": "Número del año a filtrar.",
                        "required": true,
                        "schema": {
                            "type": "string",
                            "format": "string",
                            "example": "2023"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Partidos por fecha obtenidos con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "scheduled": {
                                                        "type": "string",
                                                        "example": "2023-07-20 15:30:00"
                                                    },
                                                    "start": {
                                                        "type": "string",
                                                        "example": "2023-07-20 15:30:00"
                                                    },
                                                    "end": {
                                                        "type": "string",
                                                        "example": "2023-07-20 17:30:00"
                                                    },
                                                    "location": {
                                                        "type": "string",
                                                        "example": "Estadio Principal"
                                                    },
                                                    "home_score": {
                                                        "type": "integer",
                                                        "example": 3
                                                    },
                                                    "visitor_score": {
                                                        "type": "integer",
                                                        "example": 1
                                                    },
                                                    "home_name": {
                                                        "type": "string",
                                                        "example": "Caguas"
                                                    },
                                                    "home_shortname": {
                                                        "type": "string",
                                                        "example": "CRI"
                                                    },
                                                    "visitor_name": {
                                                        "type": "string",
                                                        "example": "Santurce"
                                                    },
                                                    "visitor_shortname": {
                                                        "type": "string",
                                                        "example": "CAN"
                                                    },
                                                    "innings": {
                                                        "type": "array",
                                                        "items": {
                                                            "properties": {
                                                                "inning": {
                                                                    "type": "integer",
                                                                    "example": 1
                                                                },
                                                                "homeLOB": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "homeHits": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "homeRuns": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "homeErrors": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "visitorLOB": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "visitorHits": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "visitorRuns": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                }
                                                            },
                                                            "type": "object"
                                                        }
                                                    },
                                                    "home_team": {
                                                        "properties": {
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "shortname": {
                                                                "type": "string"
                                                            },
                                                            "shield_url": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    },
                                                    "visitor_team": {
                                                        "properties": {
                                                            "name": {
                                                                "type": "string"
                                                            },
                                                            "shortname": {
                                                                "type": "string"
                                                            },
                                                            "shield_url": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "400": {
                        "description": "Bad Request",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "El mes o el año es requerido'."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not Found",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "No se encontraron partidos para la fecha especificada."
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/games/latests": {
            "get": {
                "tags": [
                    "Games"
                ],
                "summary": "Obtener los últimos 3 partidos",
                "description": "Este endpoint devuelve una lista con los últimos 3 partidos de la base de datos.",
                "operationId": "getLatestGames",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "properties": {
                                            "visitor_name": {
                                                "type": "string"
                                            },
                                            "home_name": {
                                                "type": "string"
                                            },
                                            "visitor_score": {
                                                "type": "string"
                                            },
                                            "home_score": {
                                                "type": "string"
                                            },
                                            "home_team": {
                                                "properties": {
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "shortname": {
                                                        "type": "string",
                                                        "nullable": true
                                                    },
                                                    "shield_url": {
                                                        "type": "string"
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    }
                                                },
                                                "type": "object"
                                            },
                                            "visitor_team": {
                                                "properties": {
                                                    "name": {
                                                        "type": "string"
                                                    },
                                                    "shortname": {
                                                        "type": "string",
                                                        "nullable": true
                                                    },
                                                    "shield_url": {
                                                        "type": "string"
                                                    },
                                                    "url": {
                                                        "type": "string"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        },
                                        "type": "object"
                                    }
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/game-box-score/{game}": {
            "get": {
                "tags": [
                    "Games"
                ],
                "summary": "Get game box score",
                "description": "Retrieve detailed information about a game's box score.",
                "operationId": "getGameBoxScore",
                "parameters": [
                    {
                        "name": "game",
                        "in": "path",
                        "description": "ID of the game",
                        "required": true,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Successful operation",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "OK"
                                        },
                                        "data": {
                                            "properties": {
                                                "name": {
                                                    "type": "string"
                                                },
                                                "start": {
                                                    "type": "string",
                                                    "format": "date-time"
                                                },
                                                "home_name": {
                                                    "type": "string"
                                                },
                                                "home_score": {
                                                    "type": "integer"
                                                },
                                                "home_shortname": {
                                                    "type": "string"
                                                },
                                                "home_team_id": {
                                                    "type": "integer"
                                                },
                                                "visitor_name": {
                                                    "type": "string"
                                                },
                                                "visitor_score": {
                                                    "type": "integer"
                                                },
                                                "visitor_shortname": {
                                                    "type": "string"
                                                },
                                                "visitor_team_id": {
                                                    "type": "integer"
                                                },
                                                "location": {
                                                    "type": "string"
                                                },
                                                "innings": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "inning": {
                                                                "type": "string"
                                                            },
                                                            "homeRuns": {
                                                                "type": "integer"
                                                            },
                                                            "homeErrors": {
                                                                "type": "integer"
                                                            },
                                                            "homeLOB": {
                                                                "type": "integer"
                                                            },
                                                            "homeHits": {
                                                                "type": "integer"
                                                            },
                                                            "visitorRuns": {
                                                                "type": "integer"
                                                            },
                                                            "visitorErrors": {
                                                                "type": "integer"
                                                            },
                                                            "visitorLOB": {
                                                                "type": "integer"
                                                            },
                                                            "visitorHits": {
                                                                "type": "integer"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "home_bath": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "stat_id": {
                                                                "type": "string"
                                                            },
                                                            "game_id": {
                                                                "type": "integer"
                                                            },
                                                            "roster_id": {
                                                                "type": "integer"
                                                            },
                                                            "value": {
                                                                "type": "integer"
                                                            },
                                                            "roster": {
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "integer"
                                                                    },
                                                                    "first_name": {
                                                                        "type": "string"
                                                                    },
                                                                    "last_name": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "type": "object"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "visitor_bath": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "stat_id": {
                                                                "type": "string"
                                                            },
                                                            "game_id": {
                                                                "type": "integer"
                                                            },
                                                            "roster_id": {
                                                                "type": "integer"
                                                            },
                                                            "value": {
                                                                "type": "integer"
                                                            },
                                                            "roster": {
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "integer"
                                                                    },
                                                                    "first_name": {
                                                                        "type": "string"
                                                                    },
                                                                    "last_name": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "type": "object"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "home_pitch": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "stat_id": {
                                                                "type": "string"
                                                            },
                                                            "game_id": {
                                                                "type": "integer"
                                                            },
                                                            "roster_id": {
                                                                "type": "integer"
                                                            },
                                                            "value": {
                                                                "type": "integer"
                                                            },
                                                            "roster": {
                                                                "properties": {
                                                                    "id": {
                                                                        "type": "integer"
                                                                    },
                                                                    "first_name": {
                                                                        "type": "string"
                                                                    },
                                                                    "last_name": {
                                                                        "type": "string"
                                                                    }
                                                                },
                                                                "type": "object"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        },
                                        "visitor_pitch": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "stat_id": {
                                                        "type": "string"
                                                    },
                                                    "game_id": {
                                                        "type": "integer"
                                                    },
                                                    "roster_id": {
                                                        "type": "integer"
                                                    },
                                                    "value": {
                                                        "type": "integer"
                                                    },
                                                    "roster": {
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer"
                                                            },
                                                            "first_name": {
                                                                "type": "string"
                                                            },
                                                            "last_name": {
                                                                "type": "string"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/league/positions": {
            "get": {
                "tags": [
                    "League"
                ],
                "summary": "Obtener la tabla de posiciones",
                "description": "Este endpoint devuelve la tabla de posiciones de la liga.",
                "operationId": "getTablePositions",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "IND": {
                                            "properties": {
                                                "team": {
                                                    "properties": {
                                                        "name": {
                                                            "type": "string"
                                                        },
                                                        "shortname": {
                                                            "type": "string",
                                                            "nullable": true
                                                        },
                                                        "shield_url": {
                                                            "type": "string"
                                                        },
                                                        "url": {
                                                            "type": "string"
                                                        }
                                                    },
                                                    "type": "object"
                                                },
                                                "games_played": {
                                                    "type": "integer"
                                                },
                                                "wins": {
                                                    "type": "integer"
                                                },
                                                "losses": {
                                                    "type": "integer"
                                                },
                                                "percentage": {
                                                    "type": "number"
                                                },
                                                "difference": {
                                                    "type": "integer"
                                                },
                                                "last_5": {
                                                    "type": "array",
                                                    "items": {
                                                        "type": "string"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/notices/last-notice": {
            "get": {
                "tags": [
                    "Notices"
                ],
                "summary": "Obtener la última noticia",
                "description": "Este endpoint devuelve la última noticia publicada.",
                "operationId": "getLastNotice",
                "responses": {
                    "200": {
                        "description": "Noticia obtenida con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Noticia obtenida con éxito"
                                        },
                                        "data": {
                                            "properties": {
                                                "id": {
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "title": {
                                                    "type": "string",
                                                    "example": "Título de la noticia"
                                                },
                                                "subtitle": {
                                                    "type": "string",
                                                    "example": "Subtítulo de la noticia"
                                                },
                                                "slug": {
                                                    "type": "string",
                                                    "example": "slug-de-la-noticia"
                                                },
                                                "body": {
                                                    "type": "string",
                                                    "example": "Contenido de la noticia"
                                                },
                                                "publish_date": {
                                                    "type": "string",
                                                    "format": "date-time",
                                                    "example": "2023-07-13 10:30:00"
                                                },
                                                "files": {
                                                    "type": "array",
                                                    "items": {
                                                        "properties": {
                                                            "id": {
                                                                "type": "integer",
                                                                "example": 5
                                                            },
                                                            "name": {
                                                                "type": "string",
                                                                "example": "expedita"
                                                            },
                                                            "path": {
                                                                "type": "string",
                                                                "example": "images/notices/5f8e3a74b4df4e57ff4cf8ee4afe207a.png"
                                                            },
                                                            "is_main": {
                                                                "type": "integer",
                                                                "example": 1
                                                            },
                                                            "fileable_id": {
                                                                "type": "integer",
                                                                "example": 5
                                                            },
                                                            "fileable_type": {
                                                                "type": "string",
                                                                "example": "App\\\\Models\\\\Notice"
                                                            },
                                                            "created_at": {
                                                                "type": "string",
                                                                "format": "date-time",
                                                                "example": "2023-07-10T14:02:28.000000Z"
                                                            },
                                                            "updated_at": {
                                                                "type": "string",
                                                                "format": "date-time",
                                                                "example": "2023-07-10T14:02:28.000000Z"
                                                            }
                                                        },
                                                        "type": "object"
                                                    }
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/notices": {
            "get": {
                "tags": [
                    "Notices"
                ],
                "summary": "Obtener últimas 20 noticias publicadas",
                "description": "Este endpoint devuelve una lista de ñas ultimas 20 noticias noticias publicadas.",
                "operationId": "getAllNotices",
                "responses": {
                    "200": {
                        "description": "Noticias obtenidas con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Noticias obtenidas con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "integer",
                                                        "example": 1
                                                    },
                                                    "title": {
                                                        "type": "string",
                                                        "example": "Título de la noticia"
                                                    },
                                                    "subtitle": {
                                                        "type": "string",
                                                        "example": "Subtítulo de la noticia"
                                                    },
                                                    "slug": {
                                                        "type": "string",
                                                        "example": "slug-de-la-noticia"
                                                    },
                                                    "body": {
                                                        "type": "string",
                                                        "example": "Contenido de la noticia"
                                                    },
                                                    "publish_date": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "example": "2023-07-13 10:30:00"
                                                    },
                                                    "file_path": {
                                                        "type": "string",
                                                        "example": "http://laliga.test/storage/images/notices/d1882be5cbd3d634449072894202f885.png"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/notifications": {
            "get": {
                "tags": [
                    "Notifications"
                ],
                "summary": "Obtener notificaciones",
                "description": "Este endpoint devuelve las notificaciones más recientes.",
                "operationId": "getNotifications",
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Notificaciones obtenidas con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "integer",
                                                        "example": 1
                                                    },
                                                    "title": {
                                                        "type": "string",
                                                        "example": "Nueva notificación"
                                                    },
                                                    "text": {
                                                        "type": "string",
                                                        "example": "Esta es una nueva notificación importante."
                                                    },
                                                    "date": {
                                                        "type": "string",
                                                        "format": "date-time",
                                                        "example": "2023-07-25 10:30:00"
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Error interno del servidor"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/league/statistics/players": {
            "get": {
                "tags": [
                    "Players Statistics"
                ],
                "summary": "Obtener estadísticas de jugadores",
                "description": "Este endpoint devuelve estadísticas de jugadores basado en ciertos filtros.",
                "operationId": "getPlayersStatistics",
                "parameters": [
                    {
                        "name": "table",
                        "in": "query",
                        "description": "Nombre de la tabla (batting-table o pitching-table)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "column",
                        "in": "query",
                        "description": "Nombre de la columna (por ejemplo: bat_avg o pit_era)",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "team_id",
                        "in": "query",
                        "description": "ID del equipo",
                        "required": false,
                        "schema": {
                            "type": "integer"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Estadísticas obtenidas con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "first_name": {
                                                        "type": "string",
                                                        "example": "Joneshwy"
                                                    },
                                                    "last_name": {
                                                        "type": "string",
                                                        "example": "Fargas"
                                                    },
                                                    "stats": {
                                                        "type": "array",
                                                        "items": {
                                                            "properties": {
                                                                "id": {
                                                                    "type": "string",
                                                                    "example": "bat_1b"
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "example": "bat_1b"
                                                                },
                                                                "pivot": {
                                                                    "properties": {
                                                                        "roster_id": {
                                                                            "type": "integer",
                                                                            "example": 11
                                                                        },
                                                                        "stat_id": {
                                                                            "type": "string",
                                                                            "example": "bat_1b"
                                                                        },
                                                                        "value": {
                                                                            "type": "integer",
                                                                            "example": 20
                                                                        }
                                                                    },
                                                                    "type": "object"
                                                                }
                                                            },
                                                            "type": "object"
                                                        }
                                                    },
                                                    "team": {
                                                        "type": "array",
                                                        "items": {
                                                            "properties": {
                                                                "id": {
                                                                    "type": "integer",
                                                                    "example": 1
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "example": "Gigantes de Carolina"
                                                                }
                                                            },
                                                            "type": "object"
                                                        }
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Error interno del servidor"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/sponsors": {
            "get": {
                "tags": [
                    "Sponsors"
                ],
                "summary": "Obtener todos los sponsors",
                "description": "Este endpoint devuelve una lista de todos los sponsors de la base de datos.",
                "operationId": "getSponsors",
                "responses": {
                    "200": {
                        "description": "Sponsors obtenidos con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Sponsors obtenidos con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "integer",
                                                        "example": 1
                                                    },
                                                    "url": {
                                                        "type": "string",
                                                        "example": "https://example.com"
                                                    },
                                                    "order": {
                                                        "type": "integer",
                                                        "example": 2
                                                    },
                                                    "created_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "updated_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "file": {
                                                        "type": "array",
                                                        "items": {
                                                            "properties": {
                                                                "id": {
                                                                    "type": "integer",
                                                                    "example": 14
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "example": "quod"
                                                                },
                                                                "path": {
                                                                    "type": "string",
                                                                    "example": "images/teams/696dbff94417c5b7696dc8e2037a2e5e.png"
                                                                },
                                                                "is_main": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "fileable_id": {
                                                                    "type": "integer",
                                                                    "example": 1
                                                                },
                                                                "fileable_type": {
                                                                    "type": "string",
                                                                    "example": "App\\\\Models\\\\Team"
                                                                },
                                                                "created_at": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                },
                                                                "updated_at": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                }
                                                            },
                                                            "type": "object"
                                                        }
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/teams": {
            "get": {
                "tags": [
                    "Teams"
                ],
                "summary": "Obtener todos los equipos",
                "description": "Este endpoint devuelve una lista de todos los equipos de la base de datos.",
                "operationId": "getTeams",
                "responses": {
                    "200": {
                        "description": "Teams obtenidos con éxito",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Teams obtenidos con éxito"
                                        },
                                        "data": {
                                            "type": "array",
                                            "items": {
                                                "properties": {
                                                    "id": {
                                                        "type": "integer",
                                                        "example": 1
                                                    },
                                                    "external_uuid": {
                                                        "type": "string",
                                                        "example": "4997E672-E498-45E5-BD23-FE8A94C2371A"
                                                    },
                                                    "external_team_id": {
                                                        "type": "string",
                                                        "example": "TestInvolve"
                                                    },
                                                    "password": {
                                                        "type": "string",
                                                        "example": "LigaPR/321!"
                                                    },
                                                    "name": {
                                                        "type": "string",
                                                        "example": "Criollos de Caguas"
                                                    },
                                                    "manager": {
                                                        "type": "string",
                                                        "example": "Edgar Perez"
                                                    },
                                                    "short_name": {
                                                        "type": "string",
                                                        "example": "CRI"
                                                    },
                                                    "color": {
                                                        "type": "string",
                                                        "example": "F50022"
                                                    },
                                                    "stadium": {
                                                        "type": "string",
                                                        "example": "Parque Yldefonso Solá Morales"
                                                    },
                                                    "president": {
                                                        "type": "string",
                                                        "example": "Raúl Rodríguez"
                                                    },
                                                    "star_player": {
                                                        "type": "string",
                                                        "example": "Edwin Díaz"
                                                    },
                                                    "iscore_tag": {
                                                        "type": "string",
                                                        "nullable": true
                                                    },
                                                    "created_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "updated_at": {
                                                        "type": "string",
                                                        "format": "date-time"
                                                    },
                                                    "files": {
                                                        "type": "array",
                                                        "items": {
                                                            "properties": {
                                                                "id": {
                                                                    "type": "integer",
                                                                    "example": 14
                                                                },
                                                                "name": {
                                                                    "type": "string",
                                                                    "example": "quod"
                                                                },
                                                                "path": {
                                                                    "type": "string",
                                                                    "example": "images/teams/696dbff94417c5b7696dc8e2037a2e5e.png"
                                                                },
                                                                "is_main": {
                                                                    "type": "integer",
                                                                    "example": 0
                                                                },
                                                                "fileable_id": {
                                                                    "type": "integer",
                                                                    "example": 1
                                                                },
                                                                "fileable_type": {
                                                                    "type": "string",
                                                                    "example": "App\\\\Models\\\\Team"
                                                                },
                                                                "created_at": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                },
                                                                "updated_at": {
                                                                    "type": "string",
                                                                    "format": "date-time"
                                                                },
                                                                "pivot": {
                                                                    "properties": {
                                                                        "fileable_id": {
                                                                            "type": "integer",
                                                                            "example": 1
                                                                        },
                                                                        "file_id": {
                                                                            "type": "integer",
                                                                            "example": 14
                                                                        },
                                                                        "fileable_type": {
                                                                            "type": "string",
                                                                            "example": "App\\\\Models\\\\Team"
                                                                        },
                                                                        "type": {
                                                                            "type": "string",
                                                                            "example": "logo"
                                                                        }
                                                                    },
                                                                    "type": "object"
                                                                }
                                                            },
                                                            "type": "object"
                                                        }
                                                    }
                                                },
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "api/teams/favorite-team/{id}": {
            "get": {
                "tags": [
                    "Teams"
                ],
                "summary": "Obtener equipo favorito",
                "description": "Este endpoint devuelve los detalles del equipo favorito de la base de datos.",
                "operationId": "getFavoriteTeam",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID del equipo favorito.",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Team obtenido con éxito"
                                        },
                                        "data": {
                                            "properties": {
                                                "id": {
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "name": {
                                                    "type": "string",
                                                    "example": "Criollos de Caguas"
                                                },
                                                "color": {
                                                    "type": "string",
                                                    "example": "F50022"
                                                },
                                                "general_manager": {
                                                    "type": "string",
                                                    "example": "Edwin Díaz"
                                                },
                                                "logo": {
                                                    "type": "string",
                                                    "example": "http://laliga.test/storage/images/teams/2be4779f0da0d0dc360a0e03d8aa0063.png"
                                                },
                                                "last_game": {
                                                    "properties": {
                                                        "id": {
                                                            "type": "integer",
                                                            "example": 1
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "example": "1/13/23 Mayaguez at Caguas"
                                                        },
                                                        "start": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2023-01-13 23:15:32"
                                                        },
                                                        "end": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2023-01-14 02:17:23"
                                                        },
                                                        "home_name": {
                                                            "type": "string",
                                                            "example": "Caguas"
                                                        },
                                                        "home_shortname": {
                                                            "type": "string",
                                                            "example": "CRI"
                                                        },
                                                        "home_score": {
                                                            "type": "string",
                                                            "example": "10"
                                                        },
                                                        "visitor_name": {
                                                            "type": "string",
                                                            "example": "Mayaguez"
                                                        },
                                                        "visitor_shortname": {
                                                            "type": "string",
                                                            "example": "IND"
                                                        },
                                                        "visitor_score": {
                                                            "type": "string",
                                                            "example": "1"
                                                        }
                                                    },
                                                    "type": "object"
                                                },
                                                "next_game": {
                                                    "properties": {
                                                        "id": {
                                                            "type": "integer",
                                                            "example": 2
                                                        },
                                                        "name": {
                                                            "type": "string",
                                                            "example": "1/10/23 Mayaguez at Caguas"
                                                        },
                                                        "scheduled": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2023-07-21 00:06:57"
                                                        },
                                                        "start": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2023-07-21 00:06:57"
                                                        },
                                                        "end": {
                                                            "type": "string",
                                                            "format": "date-time",
                                                            "example": "2023-01-11 03:35:11"
                                                        },
                                                        "home_name": {
                                                            "type": "string",
                                                            "example": "Caguas"
                                                        },
                                                        "home_shortname": {
                                                            "type": "string",
                                                            "example": "CRI"
                                                        },
                                                        "home_score": {
                                                            "type": "string",
                                                            "example": "1"
                                                        },
                                                        "visitor_name": {
                                                            "type": "string",
                                                            "example": "Mayaguez"
                                                        },
                                                        "visitor_shortname": {
                                                            "type": "string",
                                                            "example": "IND"
                                                        },
                                                        "visitor_score": {
                                                            "type": "string",
                                                            "example": "6"
                                                        }
                                                    },
                                                    "type": "object"
                                                },
                                                "position": {
                                                    "type": "integer",
                                                    "example": 6
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "api/teams/{team}/last-games": {
            "get": {
                "tags": [
                    "Teams"
                ],
                "summary": "Obtener scores de los últimos 6 juegos de un equipo",
                "description": "Este endpoint devuelve los scores de los últimos 6 juegos de un equipo.",
                "operationId": "getLastGames",
                "parameters": [
                    {
                        "name": "id",
                        "in": "path",
                        "description": "ID del equipo favorito.",
                        "required": true,
                        "schema": {
                            "type": "integer",
                            "example": 1
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Ultimos games obtenidos con éxito"
                                        },
                                        "data": {
                                            "properties": {
                                                "0": {
                                                    "type": "integer",
                                                    "example": 7
                                                },
                                                "1": {
                                                    "type": "integer",
                                                    "example": 3
                                                },
                                                "2": {
                                                    "type": "integer",
                                                    "example": 5
                                                },
                                                "3": {
                                                    "type": "integer",
                                                    "example": 2
                                                },
                                                "4": {
                                                    "type": "integer",
                                                    "example": 1
                                                },
                                                "5": {
                                                    "type": "integer",
                                                    "example": 4
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "500": {
                        "description": "Error interno del servidor",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "message": {
                                            "type": "string",
                                            "example": "Mensaje de error"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    },
    "components": {
        "responses": {
            "500": {
                "description": "Internal Server Error",
                "content": {
                    "application/json": {
                        "schema": {
                            "properties": {
                                "message": {
                                    "type": "string",
                                    "example": "Internal Server Error"
                                }
                            },
                            "type": "object"
                        }
                    }
                }
            }
        }
    }
}