Material pack simulation uses POST /api/v1/simulation/create-material-pack-batch with approvalCode/nodeId/runMode in the request body; keep the shared create-batch payload for hosecloud single-number mode. Verification: material pack create on xiezihao staging returns 200 and ingests records (HY001/HY002, taskMode=simulation); 116 tests pass.
165 lines
4.7 KiB
YAML
165 lines
4.7 KiB
YAML
paths:
|
|
/v1/simulation/create-batch:
|
|
post:
|
|
tags: [Simulation]
|
|
operationId: createSimulationBatch
|
|
summary: Create a simulation batch
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
responses:
|
|
"200":
|
|
description: Created batch id.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/create-material-pack-batch:
|
|
post:
|
|
tags: [Simulation]
|
|
operationId: createMaterialPackBatch
|
|
summary: Create a material pack simulation batch
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
responses:
|
|
"200":
|
|
description: Created batch id.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/batches:
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: listSimulationBatches
|
|
summary: List simulation batches
|
|
parameters:
|
|
- name: limit
|
|
in: query
|
|
schema:
|
|
type: integer
|
|
description: Max batches to return.
|
|
responses:
|
|
"200":
|
|
description: Simulation batches.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/batch/{batchId}:
|
|
parameters:
|
|
- $ref: ../components/parameters.yaml#/BatchId
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: getSimulationBatch
|
|
summary: Get a simulation batch detail including echoed create params
|
|
responses:
|
|
"200":
|
|
description: Simulation batch detail.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/batches/{batchId}/records:
|
|
parameters:
|
|
- $ref: ../components/parameters.yaml#/BatchId
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: getSimulationBatchRecords
|
|
summary: Get wrapped simulation batch records
|
|
parameters:
|
|
- name: query
|
|
in: query
|
|
schema:
|
|
type: string
|
|
description: Optional local contains filter for record/document/trace identifiers.
|
|
responses:
|
|
"200":
|
|
description: Compact simulation records and bridge hints.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/templates:
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: listSimulationTemplates
|
|
summary: List simulation test templates
|
|
responses:
|
|
"200":
|
|
description: Simulation templates.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/integration-status:
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: getSimulationIntegrationStatus
|
|
summary: Get available source integration status for simulation
|
|
responses:
|
|
"200":
|
|
description: Integration status.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/simulation/hosecloud-integrations:
|
|
get:
|
|
tags: [Simulation]
|
|
operationId: listSimulationHosecloudIntegrations
|
|
summary: List hosecloud source integrations available for simulation
|
|
responses:
|
|
"200":
|
|
description: Hosecloud integrations.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
type: object
|
|
additionalProperties: true
|
|
/v1/material-packages/upload:
|
|
post:
|
|
tags: [Simulation]
|
|
operationId: uploadMaterialPackage
|
|
summary: Upload a material package ZIP for simulation
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
multipart/form-data:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
file:
|
|
type: string
|
|
format: binary
|
|
responses:
|
|
"200":
|
|
description: Parsed material package with schema config.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
additionalProperties: true
|