am-freescan/scripts/fixtures/scanner-supplier-contract.json

412 lines
8.8 KiB
JSON
Raw Normal View History

{
2026-11-07 21:55:32 +08:00
"document": "scanner-api.md",
"sha256": "8465fb73ddbbf336d4e3bda563cbebacfda8f62fea3394e4026dfc5e5d6f6223",
"sourceHistory": [
{
"document": "扫描设备api (4).md",
"sha256": "06cc3a1fe038215abf674eddad71a72ef2f519fc9f77c8027fcde9bd56604e11"
}
],
"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": "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": "EXPORT",
"method": "POST",
"path": "/api/v1/exports",
"request": {
"name": "Part001",
"formats": [
"STL",
"PLY"
]
},
"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": "BATTERY",
"method": "GET",
"path": "/api/v1/device/battery",
"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": "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_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
},
{
"operation": "FRAMEWORK_UPLOAD",
"method": "POST",
"path": "/api/v1/framework/files",
"request": null,
"upload": true
2026-11-07 21:55:32 +08:00
},
{
"operation": "CALIBRATION_RECOVER",
"method": "POST",
"path": "/api/v1/calibration/recover",
"request": {
"confirm": true,
"force": true,
"expectedSessionId": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
},
"upload": false
}
]
}