Add scanner API integration, workflow components, execution-bound live images and 3D model viewing. Harden task control, parameters, resource protection and reports, with automated regressions and detailed verification records.
313 lines
6.5 KiB
JSON
313 lines
6.5 KiB
JSON
{
|
|
"document": "扫描设备api.md",
|
|
"sha256": "2afeccd09d92bd5d110a16a40ff455836f764937426a8b83f563cded10caf0ea",
|
|
"operations": [
|
|
{
|
|
"operation": "CONNECT",
|
|
"method": "POST",
|
|
"path": "/api/v1/device/connect",
|
|
"request": {
|
|
"deviceType": 3
|
|
}
|
|
},
|
|
{
|
|
"operation": "CREATE_PROJECT",
|
|
"method": "POST",
|
|
"path": "/api/v1/projects",
|
|
"request": {
|
|
"mode": "trak",
|
|
"name": "Part001"
|
|
}
|
|
},
|
|
{
|
|
"operation": "DISCONNECT",
|
|
"method": "POST",
|
|
"path": "/api/v1/device/disconnect",
|
|
"request": {
|
|
"confirm": true,
|
|
"discardProject": true,
|
|
"expectedProjectId": "Scan_Example",
|
|
"expectedSessionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
|
|
}
|
|
},
|
|
{
|
|
"operation": "RECONNECT",
|
|
"method": "POST",
|
|
"path": "/api/v1/device/reconnect",
|
|
"request": {
|
|
"confirm": true,
|
|
"discardProject": false,
|
|
"expectedProjectId": null,
|
|
"expectedSessionId": null,
|
|
"deviceType": 3
|
|
}
|
|
},
|
|
{
|
|
"operation": "PREVIEW_START",
|
|
"method": "POST",
|
|
"path": "/api/v1/preview/start",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "PREVIEW_STOP",
|
|
"method": "POST",
|
|
"path": "/api/v1/preview/stop",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "SCAN_START",
|
|
"method": "POST",
|
|
"path": "/api/v1/scan/start",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "SCAN_STOP",
|
|
"method": "POST",
|
|
"path": "/api/v1/scan/stop",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "PREVIEW_IMAGE",
|
|
"method": "GET",
|
|
"path": "/api/v1/preview/image",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "PREVIEW_STREAM",
|
|
"method": "GET",
|
|
"path": "/api/v1/preview/stream",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "PARAMETERS",
|
|
"method": "POST",
|
|
"path": "/api/v1/parameters",
|
|
"request": {
|
|
"pointDistance": 0.2,
|
|
"brightness": 8,
|
|
"viewLock": false
|
|
}
|
|
},
|
|
{
|
|
"operation": "MESH",
|
|
"method": "POST",
|
|
"path": "/api/v1/mesh",
|
|
"request": {
|
|
"filterLevel": 1,
|
|
"smoothLevel": 1,
|
|
"maxTriangles": 1000000,
|
|
"fillSmallHole": 20,
|
|
"removeSpikes": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "MESH_CONFIRM",
|
|
"method": "POST",
|
|
"path": "/api/v1/mesh/confirm",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "MESH_UNDO",
|
|
"method": "POST",
|
|
"path": "/api/v1/mesh/undo",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "ALIGN",
|
|
"method": "POST",
|
|
"path": "/api/v1/align",
|
|
"request": {
|
|
"action": "enter"
|
|
}
|
|
},
|
|
{
|
|
"operation": "EDIT",
|
|
"method": "POST",
|
|
"path": "/api/v1/edit",
|
|
"request": {
|
|
"projectUuid": "11111111-1111-1111-1111-111111111111",
|
|
"markerIds": [
|
|
10,
|
|
11,
|
|
12
|
|
],
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CLIP_PLANE",
|
|
"method": "POST",
|
|
"path": "/api/v1/clip-plane",
|
|
"request": {
|
|
"center": [
|
|
0,
|
|
0,
|
|
0
|
|
],
|
|
"normal": [
|
|
0,
|
|
0,
|
|
1
|
|
],
|
|
"deleteBelowPoints": true,
|
|
"deleteBelowMarkers": false,
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "EXPORT",
|
|
"method": "POST",
|
|
"path": "/api/v1/exports",
|
|
"request": {
|
|
"name": "Part001",
|
|
"formats": [
|
|
"STL",
|
|
"PLY"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"operation": "SNAPSHOT",
|
|
"method": "POST",
|
|
"path": "/api/v1/data/snapshots",
|
|
"request": {
|
|
"maxPoints": 100000,
|
|
"include": [
|
|
"points",
|
|
"markers",
|
|
"meshes"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"operation": "SCENE",
|
|
"method": "GET",
|
|
"path": "/api/v1/data/scene",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "FILE",
|
|
"method": "GET",
|
|
"path": "/api/v1/files/{fileId}",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_ENTER",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/enter",
|
|
"request": {}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_MODE",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/setMode",
|
|
"request": {
|
|
"mode": 0
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_START",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/start",
|
|
"request": {
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_TRAK",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/setTrakType",
|
|
"request": {
|
|
"trakType": 1,
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_SYSTEM",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/startSystem",
|
|
"request": {
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_FREE",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/setFree",
|
|
"request": {
|
|
"enabled": true,
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_CAPTURE",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/capturePose",
|
|
"request": {
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_COMPUTE",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/compute",
|
|
"request": {
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_ADVANCED",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/setAdvanced",
|
|
"request": {
|
|
"enabled": true,
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "CALIBRATION_APPLY_LAST",
|
|
"method": "POST",
|
|
"path": "/api/v1/calibration/applyLast",
|
|
"request": {
|
|
"mode": 0,
|
|
"confirm": true
|
|
}
|
|
},
|
|
{
|
|
"operation": "METADATA",
|
|
"method": "GET",
|
|
"path": "/",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "HEALTH",
|
|
"method": "GET",
|
|
"path": "/api/v1/health",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "STATUS",
|
|
"method": "GET",
|
|
"path": "/api/v1/status",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "CAPABILITIES",
|
|
"method": "GET",
|
|
"path": "/api/v1/capabilities",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "METRICS",
|
|
"method": "GET",
|
|
"path": "/api/v1/preview/metrics",
|
|
"request": null
|
|
},
|
|
{
|
|
"operation": "TASK",
|
|
"method": "GET",
|
|
"path": "/api/v1/tasks/{taskId}",
|
|
"request": null
|
|
}
|
|
]
|
|
} |