{
    "openapi": "3.0.0",
    "info": {
        "title": "TheGHoppers API",
        "description": "Public API for theghoppers.com services.",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://api.theghoppers.com",
            "description": "Production server"
        }
    ],
    "paths": {
        "/api/health": {
            "get": {
                "tags": [
                    "System"
                ],
                "summary": "API health check",
                "operationId": "9d9266247855e9f8cb7f78130cc27653",
                "responses": {
                    "200": {
                        "description": "Healthy API response",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "ok"
                                        },
                                        "service": {
                                            "type": "string",
                                            "example": "api.theghoppers.com"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/short-links/{code}": {
            "get": {
                "tags": [
                    "System"
                ],
                "summary": "Resolve a short-link code",
                "operationId": "8591f26d3c40c0839df571236b58782d",
                "parameters": [
                    {
                        "name": "code",
                        "in": "path",
                        "description": "Short-link code to resolve",
                        "required": true,
                        "schema": {
                            "type": "string"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "description": "Short-link resolved",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "properties": {
                                        "status": {
                                            "type": "string",
                                            "example": "success"
                                        },
                                        "data": {
                                            "properties": {
                                                "code": {
                                                    "type": "string",
                                                    "example": "abc123"
                                                },
                                                "redirect_url": {
                                                    "type": "string",
                                                    "example": "https://theghoppers.com/profile"
                                                }
                                            },
                                            "type": "object"
                                        }
                                    },
                                    "type": "object"
                                }
                            }
                        }
                    },
                    "401": {
                        "description": "Missing or invalid API credentials"
                    },
                    "404": {
                        "description": "Short-link not found"
                    },
                    "422": {
                        "description": "Invalid short-link code"
                    }
                },
                "security": [
                    {
                        "bearerAuth": []
                    },
                    {
                        "apiKeyId": [],
                        "apiKeySecret": []
                    }
                ]
            }
        }
    },
    "components": {
        "securitySchemes": {
            "bearerAuth": {
                "type": "http",
                "bearerFormat": "JWT",
                "scheme": "bearer"
            },
            "apiKeyId": {
                "type": "apiKey",
                "name": "X-Api-Key",
                "in": "header"
            },
            "apiKeySecret": {
                "type": "apiKey",
                "name": "X-Api-Secret",
                "in": "header"
            }
        }
    },
    "tags": [
        {
            "name": "System",
            "description": "System health and status endpoints"
        }
    ]
}