创建批量查询转换作业

发布 / 项目/{projectId}/queries/bulk-convert

创建批量查询转换作业

路径参数

  • projectId 字符串 必需

    项目 ID

    格式应符合以下模式:^[A-Za-z0-9\-]+$

application/json

body

  • 语言 字符串 必需

    值为 JAVACSHARPJAVASCRIPT

  • 查询 array[string] 必需
  • tryTypedEntities 布尔

响应

  • 200 application/json

    正常

    隐藏响应属性 显示响应属性 对象
    • 挂起的查询 array[string] 必需
    • runningQueries array[string] 必需
    • completedQueries array[string] 必需
    • failedQueries array[string] 必需
  • 497 application/json

    存在现有查询转换作业时不允许执行此操作

    隐藏响应属性 显示响应属性 对象
    • jobId 字符串

      格式应符合以下模式:^[A-Za-z0-9\-]+$

    • message 字符串 必需
    • 描述 字符串
    • timestamp string(date-time) 必需
POST /项目/{projectId}/queries/bulk-convert
curl \
 --request POST 'http://127.0.0.1:8278/api/v1/project/{projectId}/queries/bulk-convert' \
 --header "Content-Type: application/json" \
 --data '{"language":"JAVA","queries":["string"],"attemptTypedEntities":true}'
请求示例
{
  "language": "JAVA",
  "queries": [
    "string"
  ],
  "attemptTypedEntities": true
}
响应示例 (200)
{
  "pendingQueries": [
    "string"
  ],
  "runningQueries": [
    "string"
  ],
  "completedQueries": [
    "string"
  ],
  "failedQueries": [
    "string"
  ]
}
响应示例 (497)
{
  "jobId": "string",
  "message": "string",
  "description": "string",
  "timestamp": "2025-05-04T09:42:00Z"
}