查看构建输入符号

OpenAPI 契约

方法
GET
路径
/api/v1/builds/{taskId}/input-index
认证
jwtBearer (bearer)
响应状态
200 400 401 403 404 429 500
请求与响应 Schema
JSON
{
  "requestBody": {},
  "responses": {
    "200": {
      "description": "Input class and member metadata",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/Index"
        }
      }
    },
    "400": {
      "description": "Invalid request",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/RequestError"
        }
      }
    },
    "401": {
      "description": "Authentication required or invalid",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "403": {
      "description": "Authenticated but not permitted",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/SecurityError"
        }
      }
    },
    "404": {
      "description": "Requested build was not found",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    },
    "429": {
      "description": "HTTP rate limit or API-key NCU usage limit exceeded",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/RateLimitError"
        }
      }
    },
    "500": {
      "description": "Unexpected server error",
      "content": {
        "application/json": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

读取可访问构建输入的类、成员和资源元数据。访问需要满足与下载输入相同的私有源文件权限,仅有输出产物访问权限不足以读取输入索引。可以搜索索引以选择精确的 NOL 声明,包括重载方法和资源路径,不执行 JAR。索引不会启用对象局部化,也不会保存项目默认值。

响应还包含 entryPointCandidates,每个候选具有 className、method、descriptor、entryName 和 source: "PUBLIC_STATIC_MAIN"。它们来自检查到的 public static main 方法,描述符为 ([Ljava/lang/String;)V。候选需要用户选择,不是所有外部应用入口的完整声明。原有 classes、resources 和 inputInspection 仍可使用。