{
  "repo": "pingcap/dm",
  "binary": "dm-portal",
  "binary_path": "cmd/dm-portal/main.go",
  "surface_kind": "http_service",
  "type": "http_service",
  "extensions": {},
  "services": [
    {
      "name": "PortalAPI",
      "type": "http",
      "methods": [
        {
          "name": "Check",
          "name_key": "PortalAPI.Check",
          "path": "/check",
          "method": "POST",
          "description": "Validate source or target database connectivity."
        },
        {
          "name": "GetSchemaInfo",
          "name_key": "PortalAPI.GetSchemaInfo",
          "path": "/schema",
          "method": "POST",
          "description": "Inspect schemas and tables from the specified source database."
        },
        {
          "name": "GenerateConfig",
          "name_key": "PortalAPI.GenerateConfig",
          "path": "/generate_config",
          "method": "POST",
          "description": "Generate a DM task configuration file."
        },
        {
          "name": "AnalyzeConfig",
          "name_key": "PortalAPI.AnalyzeConfig",
          "path": "/analyze_config_file",
          "method": "POST",
          "description": "Analyze an uploaded DM task configuration."
        },
        {
          "name": "Download",
          "name_key": "PortalAPI.Download",
          "path": "/download",
          "method": "GET",
          "description": "Download a generated task configuration file."
        }
      ]
    }
  ]
}
