am-freescan/scripts/fixtures/scanner-supplier-contract.json
lixiaolong 64db825a9f feat: 完善设备工作流集成、组合执行与主题适配
集成旋转底座、机械臂示教与坐标系,完善扫描参数、电量和框架点复用。增加组合执行、步骤进度与日志,优化首屏和流程画布性能,修复表头主题适配,并保留验证脚本和回归测试。
2026-11-02 17:38:34 +08:00

395 lines
8.3 KiB
JSON

{
"document": "扫描设备api (2).md",
"sha256": "28e9d08c9881ab8286610b9fd80a2cb4bc4cef43e3e07b8d07462387923157a9",
"operations": [
{
"operation": "CONNECT",
"method": "POST",
"path": "/api/v1/device/connect",
"request": {
"deviceType": 3
},
"upload": false
},
{
"operation": "CREATE_PROJECT",
"method": "POST",
"path": "/api/v1/projects",
"request": {
"mode": "trak",
"name": "Part001"
},
"upload": false
},
{
"operation": "DISCONNECT",
"method": "POST",
"path": "/api/v1/device/disconnect",
"request": {
"confirm": true,
"discardProject": true,
"expectedProjectId": "Scan_Example",
"expectedSessionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"upload": false
},
{
"operation": "RECONNECT",
"method": "POST",
"path": "/api/v1/device/reconnect",
"request": {
"confirm": true,
"discardProject": false,
"expectedProjectId": null,
"expectedSessionId": null,
"deviceType": 3
},
"upload": false
},
{
"operation": "PREVIEW_START",
"method": "POST",
"path": "/api/v1/preview/start",
"request": {},
"upload": false
},
{
"operation": "PREVIEW_STOP",
"method": "POST",
"path": "/api/v1/preview/stop",
"request": {},
"upload": false
},
{
"operation": "SCAN_START",
"method": "POST",
"path": "/api/v1/scan/start",
"request": {},
"upload": false
},
{
"operation": "SCAN_STOP",
"method": "POST",
"path": "/api/v1/scan/stop",
"request": {},
"upload": false
},
{
"operation": "PREVIEW_IMAGE",
"method": "GET",
"path": "/api/v1/preview/image",
"request": null,
"upload": false
},
{
"operation": "PREVIEW_STREAM",
"method": "GET",
"path": "/api/v1/preview/stream",
"request": null,
"upload": false
},
{
"operation": "PARAMETERS",
"method": "POST",
"path": "/api/v1/parameters",
"request": {
"pointDistance": 0.2,
"brightness": 8,
"viewLock": false
},
"upload": false
},
{
"operation": "EXPORT",
"method": "POST",
"path": "/api/v1/exports",
"request": {
"name": "Part001",
"formats": [
"STL",
"PLY"
]
},
"upload": false
},
{
"operation": "MESH",
"method": "POST",
"path": "/api/v1/mesh",
"request": {
"filterLevel": 1,
"smoothLevel": 1,
"maxTriangles": 1000000,
"fillSmallHole": 20,
"removeSpikes": true
},
"upload": false
},
{
"operation": "MESH_CONFIRM",
"method": "POST",
"path": "/api/v1/mesh/confirm",
"request": {},
"upload": false
},
{
"operation": "MESH_UNDO",
"method": "POST",
"path": "/api/v1/mesh/undo",
"request": {},
"upload": false
},
{
"operation": "ALIGN",
"method": "POST",
"path": "/api/v1/align",
"request": {
"action": "enter"
},
"upload": false
},
{
"operation": "EDIT",
"method": "POST",
"path": "/api/v1/edit",
"request": {
"projectUuid": "11111111-1111-1111-1111-111111111111",
"markerIds": [
10,
11,
12
],
"confirm": true
},
"upload": false
},
{
"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
},
"upload": false
},
{
"operation": "SNAPSHOT",
"method": "POST",
"path": "/api/v1/data/snapshots",
"request": {
"maxPoints": 100000,
"include": [
"points",
"markers",
"meshes"
],
"pauseAcquisition": true
},
"upload": false
},
{
"operation": "SCENE",
"method": "GET",
"path": "/api/v1/data/scene",
"request": null,
"upload": false
},
{
"operation": "FILE",
"method": "GET",
"path": "/api/v1/files/{fileId}",
"request": null,
"upload": false
},
{
"operation": "CALIBRATION_ENTER",
"method": "POST",
"path": "/api/v1/calibration/enter",
"request": {},
"upload": false
},
{
"operation": "CALIBRATION_MODE",
"method": "POST",
"path": "/api/v1/calibration/setMode",
"request": {
"mode": 0
},
"upload": false
},
{
"operation": "CALIBRATION_START",
"method": "POST",
"path": "/api/v1/calibration/start",
"request": {
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_TRAK",
"method": "POST",
"path": "/api/v1/calibration/setTrakType",
"request": {
"trakType": 1,
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_SYSTEM",
"method": "POST",
"path": "/api/v1/calibration/startSystem",
"request": {
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_FREE",
"method": "POST",
"path": "/api/v1/calibration/setFree",
"request": {
"enabled": true,
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_CAPTURE",
"method": "POST",
"path": "/api/v1/calibration/capturePose",
"request": {
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_COMPUTE",
"method": "POST",
"path": "/api/v1/calibration/compute",
"request": {
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_ADVANCED",
"method": "POST",
"path": "/api/v1/calibration/setAdvanced",
"request": {
"enabled": true,
"confirm": true
},
"upload": false
},
{
"operation": "CALIBRATION_APPLY_LAST",
"method": "POST",
"path": "/api/v1/calibration/applyLast",
"request": {
"mode": 0,
"confirm": true
},
"upload": false
},
{
"operation": "METADATA",
"method": "GET",
"path": "/",
"request": null,
"upload": false
},
{
"operation": "HEALTH",
"method": "GET",
"path": "/api/v1/health",
"request": null,
"upload": false
},
{
"operation": "STATUS",
"method": "GET",
"path": "/api/v1/status",
"request": null,
"upload": false
},
{
"operation": "CAPABILITIES",
"method": "GET",
"path": "/api/v1/capabilities",
"request": null,
"upload": false
},
{
"operation": "METRICS",
"method": "GET",
"path": "/api/v1/preview/metrics",
"request": null,
"upload": false
},
{
"operation": "BATTERY",
"method": "GET",
"path": "/api/v1/device/battery",
"request": null,
"upload": false
},
{
"operation": "TASK",
"method": "GET",
"path": "/api/v1/tasks/{taskId}",
"request": null,
"upload": false
},
{
"operation": "SCAN_TYPE",
"method": "POST",
"path": "/api/v1/scan/type",
"request": {
"scanType": "photogrammetry",
"device": "tracker",
"confirm": true
},
"upload": false
},
{
"operation": "FRAMEWORK_UPLOAD",
"method": "POST",
"path": "/api/v1/framework/files",
"request": null,
"upload": true
},
{
"operation": "FRAMEWORK_IMPORT",
"method": "POST",
"path": "/api/v1/framework/import",
"request": {
"fileIds": [
"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"confirm": true
},
"upload": false
},
{
"operation": "FRAMEWORK_OPTIMIZE",
"method": "POST",
"path": "/api/v1/framework/optimize",
"request": {},
"upload": false
}
]
}