{
  "repo": "pingcap/tidb-dashboard",
  "binary": "tidb-dashboard",
  "binary_path": "cmd/tidb-dashboard/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "services": [],
  "extensions": {
    "http_routes": [
      {
        "method": "GET",
        "path": "/dashboard/",
        "name_key": "HTTP GET /dashboard/",
        "description": "Serves the embedded TiDB Dashboard UI assets.",
        "implementation": "cmd/tidb-dashboard/main.go"
      },
      {
        "method": "GET",
        "path": "/dashboard/api/swagger/",
        "name_key": "HTTP GET /dashboard/api/swagger/",
        "description": "Serves Swagger/OpenAPI documentation for the dashboard API.",
        "implementation": "cmd/tidb-dashboard/main.go"
      },
      {
        "method": "GET",
        "path": "/debug/pprof/*",
        "name_key": "HTTP GET /debug/pprof/*",
        "description": "Exposes Go runtime profiling handlers from the default HTTP mux.",
        "implementation": "cmd/tidb-dashboard/main.go"
      }
    ],
    "runtime_components": [
      {
        "name": "dashboard-api-proxy",
        "kind": "http_router",
        "name_key": "Runtime TiDBDashboardAPI.ProxyRequests",
        "description": "Routes dashboard API requests into the apiserver service tree.",
        "trigger": "Requests hit /dashboard/api/*.",
        "conditions": [
          "Dashboard API requests are routed under /dashboard/api/*."
        ]
      }
    ],
    "notes": [
      "Standalone TiDB Dashboard server that serves the embedded UI, dashboard API, Swagger docs, and runtime pprof handlers."
    ]
  }
}
