无权限

Derrick博客站

工业miniAPP Postman接口集合导入文件

工业miniAPP Postman接口集合导入文件(赛题适配版)

说明

以下是可直接导入Postman的JSON格式接口集合,包含所有赛题要求的核心功能接口,已预设请求头、请求体模板及环境变量引用。导入后需在Postman中配置iDME_ENDPOINTAPP_IDX_AUTH_TOKEN三个环境变量,即可直接调试。

导入文件内容(复制完整JSON到文本文件,后缀改为.json后导入)

{
    "info": {
        "_postman_id": "f8888888-8888-4888-8888-888888888888",
        "name": "工业miniAPP-赛题适配接口集合",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
        "description": "工业miniAPP开发赛项核心接口集合,适配iDME 1.24.090-HCS xDM-F规范,覆盖设备管理、物料管理、工序工艺管理全功能"
    },
    "item": [
        {
            "name": "一、设备管理模块",
            "item": [
                {
                    "name": "DM-001:新增设备",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            },
                            {
                                "key": "X-Project-Id",
                                "value": "{{X_PROJECT_ID}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"equipmentCode\": \"EQ20250001\",\n    \"equipmentName\": \"五轴加工中心\",\n    \"manufacturer\": \"DMG MORI\",\n    \"brand\": \"DMG MORI\",\n    \"specification\": \"CMX 50 U\",\n    \"supplier\": \"上海某机械有限公司\",\n    \"productionDate\": \"2025-01-01\",\n    \"serviceLife\": \"5年\",\n    \"depreciationMethod\": \"平均年限法\",\n    \"location\": \"车间A区1号工位\",\n    \"extAttrs\": {\n      \"technicalParams\": [\n        {\"attrName\": \"功率\", \"attrValue\": \"15kW\", \"attrType\": \"文本\"},\n        {\"attrName\": \"转速\", \"attrValue\": \"3000rpm\", \"attrType\": \"数值\"}\n      ],\n      \"spareParts\": [\n        {\"partCode\": \"SP2025001\", \"partName\": \"轴承\", \"stockQuantity\": 10, \"unit\": \"个\"}\n      ]\n    },\n    \"creator\": \"test_user\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/create",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "create"]
                        },
                        "description": "新增设备,覆盖赛题要求的所有必填字段及扩展属性,返回设备实例ID需记录用于后续接口"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"equipmentCode\": \"EQ20250001\",\n    \"equipmentName\": \"五轴加工中心\",\n    \"manufacturer\": \"DMG MORI\",\n    \"brand\": \"DMG MORI\",\n    \"specification\": \"CMX 50 U\",\n    \"supplier\": \"上海某机械有限公司\",\n    \"productionDate\": \"2025-01-01\",\n    \"serviceLife\": \"5年\",\n    \"depreciationMethod\": \"平均年限法\",\n    \"location\": \"车间A区1号工位\",\n    \"extAttrs\": {\n      \"technicalParams\": [\n        {\"attrName\": \"功率\", \"attrValue\": \"15kW\", \"attrType\": \"文本\"},\n        {\"attrName\": \"转速\", \"attrValue\": \"3000rpm\", \"attrType\": \"数值\"}\n      ],\n      \"spareParts\": [\n        {\"partCode\": \"SP2025001\", \"partName\": \"轴承\", \"stockQuantity\": 10, \"unit\": \"个\"}\n      ]\n    },\n    \"creator\": \"test_user\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/create",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "create"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"设备新增成功\",\n  \"data\": {\n    \"id\": \"{{EQUIPMENT_ID}}\",\n    \"equipmentCode\": \"EQ20250001\",\n    \"equipmentName\": \"五轴加工中心\"\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "DM-002:修改设备状态",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"id\": \"{{EQUIPMENT_ID}}\",\n    \"status\": \"STOPPED\",\n    \"lastModifiedBy\": \"test_user\",\n    \"lastUpdateTime\": \"2025-01-02T10:00:00\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/update",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "update"]
                        },
                        "description": "修改设备状态,需先执行DM-001获取EQUIPMENT_ID;被工艺引用时会返回E002错误"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"id\": \"{{EQUIPMENT_ID}}\",\n    \"status\": \"STOPPED\",\n    \"lastModifiedBy\": \"test_user\",\n    \"lastUpdateTime\": \"2025-01-02T10:00:00\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/update",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "update"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"设备状态更新成功\",\n  \"data\": {\n    \"id\": \"{{EQUIPMENT_ID}}\",\n    \"status\": \"STOPPED\",\n    \"lastUpdateTime\": \"2025-01-02T10:00:00\"\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "DM-003:查询设备列表",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"filter\": {\n      \"joiner\": \"and\",\n      \"conditions\": [\n        {\"conditionName\": \"status\", \"operator\": \"=\", \"conditionValues\": [\"STOPPED\"]},\n        {\"conditionName\": \"location\", \"operator\": \"like\", \"conditionValues\": [\"车间A%\"]}\n      ]\n    },\n    \"sorts\": [{\"orderBy\": \"createTime\", \"sort\": \"DESC\"}],\n    \"isNeedTotal\": true\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/find/20/1",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "find", "20", "1"]
                        },
                        "description": "按状态、位置筛选设备,支持分页和排序"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"filter\": {\n      \"joiner\": \"and\",\n      \"conditions\": [\n        {\"conditionName\": \"status\", \"operator\": \"=\", \"conditionValues\": [\"STOPPED\"]},\n        {\"conditionName\": \"location\", \"operator\": \"like\", \"conditionValues\": [\"车间A%\"]}\n      ]\n    },\n    \"sorts\": [{\"orderBy\": \"createTime\", \"sort\": \"DESC\"}],\n    \"isNeedTotal\": true\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Equipment/find/20/1",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Equipment", "find", "20", "1"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"查询成功\",\n  \"data\": {\n    \"items\": [\n      {\n        \"id\": \"{{EQUIPMENT_ID}}\",\n        \"equipmentCode\": \"EQ20250001\",\n        \"equipmentName\": \"五轴加工中心\",\n        \"status\": \"STOPPED\",\n        \"location\": \"车间A区1号工位\",\n        \"brand\": \"DMG MORI\",\n        \"specification\": \"CMX 50 U\"\n      }\n    ],\n    \"pageInfo\": {\n      \"curPage\": 1,\n      \"pageSize\": 20,\n      \"totalRows\": 1,\n      \"totalPages\": 1\n    }\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "二、物料管理模块",
            "item": [
                {
                    "name": "MM-001:创建物料分类",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"name\": \"电子元器件\",\n    \"parentId\": null,\n    \"creator\": \"test_user\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/PartCategory/create",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "PartCategory", "create"]
                        },
                        "description": "创建根物料分类,返回CATEGORY_ID需记录用于新增物料"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"name\": \"电子元器件\",\n    \"parentId\": null,\n    \"creator\": \"test_user\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/PartCategory/create",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "PartCategory", "create"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"分类创建成功\",\n  \"data\": {\n    \"id\": \"{{CATEGORY_ID}}\",\n    \"name\": \"电子元器件\",\n    \"parentId\": null,\n    \"fullPath\": \"电子元器件/\"\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "MM-002:新增物料",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"partCode\": \"P20250001\",\n    \"partName\": \"高精度齿轮\",\n    \"specification\": \"M1.5×30×20\",\n    \"stockQuantity\": 100,\n    \"supplier\": \"深圳某精密零件厂\",\n    \"categoryId\": \"{{CATEGORY_ID}}\",\n    \"version\": \"1.0\",\n    \"status\": \"ENABLED\",\n    \"extAttrs\": {\"material\": \"45号钢\"},\n    \"creator\": \"test_user\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/create",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "create"]
                        },
                        "description": "新增物料,需先执行MM-001获取CATEGORY_ID,返回PART_ID需记录用于升版和BOM构建"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"partCode\": \"P20250001\",\n    \"partName\": \"高精度齿轮\",\n    \"specification\": \"M1.5×30×20\",\n    \"stockQuantity\": 100,\n    \"supplier\": \"深圳某精密零件厂\",\n    \"categoryId\": \"{{CATEGORY_ID}}\",\n    \"version\": \"1.0\",\n    \"status\": \"ENABLED\",\n    \"extAttrs\": {\"material\": \"45号钢\"},\n    \"creator\": \"test_user\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/create",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "create"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"物料新增成功\",\n  \"data\": {\n    \"id\": \"{{PART_ID}}\",\n    \"partCode\": \"P20250001\",\n    \"partName\": \"高精度齿轮\",\n    \"version\": \"1.0\",\n    \"status\": \"ENABLED\"\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "MM-003:物料升版",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"sourceInstanceId\": \"{{PART_ID}}\",\n    \"version\": \"1.1\",\n    \"modifier\": \"test_user\",\n    \"specification\": \"M1.5×30×22\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/saveAs",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "saveAs"]
                        },
                        "description": "物料版本升级,需先执行MM-002获取PART_ID"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"sourceInstanceId\": \"{{PART_ID}}\",\n    \"version\": \"1.1\",\n    \"modifier\": \"test_user\",\n    \"specification\": \"M1.5×30×22\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/saveAs",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "saveAs"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"物料升版成功\",\n  \"data\": {\n    \"id\": \"{{NEW_PART_ID}}\",\n    \"partCode\": \"P20250001\",\n    \"version\": \"1.1\",\n    \"specification\": \"M1.5×30×22\",\n    \"status\": \"ENABLED\"\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "MM-004:构建BOM",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"parentPartId\": \"P20250002\",\n    \"childPartId\": \"P20250001\",\n    \"quantity\": 3,\n    \"sequence\": 1,\n    \"unit\": \"个\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part_BOM_Rel/create",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part_BOM_Rel", "create"]
                        },
                        "description": "构建物料BOM关系,需先新增父物料P20250002(行星架)"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"parentPartId\": \"P20250002\",\n    \"childPartId\": \"P20250001\",\n    \"quantity\": 3,\n    \"sequence\": 1,\n    \"unit\": \"个\"\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part_BOM_Rel/create",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part_BOM_Rel", "create"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"BOM关系创建成功\",\n  \"data\": {\n    \"id\": \"{{BOM_REL_ID}}\",\n    \"parentPartId\": \"P20250002\",\n    \"childPartId\": \"P20250001\",\n    \"quantity\": 3,\n    \"sequence\": 1\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                },
                {
                    "name": "MM-005:搜索物料",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"filter\": {\n      \"joiner\": \"or\",\n      \"conditions\": [\n        {\"conditionName\": \"partCode\", \"operator\": \"like\", \"conditionValues\": [\"P2025%\"]},\n        {\"conditionName\": \"partName\", \"operator\": \"like\", \"conditionValues\": [\"齿轮%\"]},\n        {\"conditionName\": \"categoryId\", \"operator\": \"=\", \"conditionValues\": [\"{{CATEGORY_ID}}\"]}\n      ]\n    },\n    \"sorts\": [{\"orderBy\": \"partCode\", \"sort\": \"ASC\"}],\n    \"isNeedTotal\": true\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/find/20/1",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "find", "20", "1"]
                        },
                        "description": "按编码、名称、分类搜索物料"
                    },
                    "response": [
                        {
                            "name": "成功响应",
                            "originalRequest": {
                                "method": "POST",
                                "header": [
                                    {
                                        "key": "Content-Type",
                                        "value": "application/json"
                                    },
                                    {
                                        "key": "X-Auth-Token",
                                        "value": "{{X_AUTH_TOKEN}}"
                                    }
                                ],
                                "body": {
                                    "mode": "raw",
                                    "raw": "{\n  \"params\": {\n    \"filter\": {\n      \"joiner\": \"or\",\n      \"conditions\": [\n        {\"conditionName\": \"partCode\", \"operator\": \"like\", \"conditionValues\": [\"P2025%\"]},\n        {\"conditionName\": \"partName\", \"operator\": \"like\", \"conditionValues\": [\"齿轮%\"]},\n        {\"conditionName\": \"categoryId\", \"operator\": \"=\", \"conditionValues\": [\"{{CATEGORY_ID}}\"]}\n      ]\n    },\n    \"sorts\": [{\"orderBy\": \"partCode\", \"sort\": \"ASC\"}],\n    \"isNeedTotal\": true\n  }\n}"
                                },
                                "url": {
                                    "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/Part/find/20/1",
                                    "protocol": "http",
                                    "host": ["{{iDME_ENDPOINT}}"],
                                    "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "Part", "find", "20", "1"]
                                }
                            },
                            "status": "OK",
                            "code": 200,
                            "body": "{\n  \"code\": \"0000\",\n  \"msg\": \"查询成功\",\n  \"data\": {\n    \"items\": [\n      {\n        \"id\": \"{{PART_ID}}\",\n        \"partCode\": \"P20250001\",\n        \"partName\": \"高精度齿轮\",\n        \"categoryId\": \"{{CATEGORY_ID}}\",\n        \"version\": \"1.0\",\n        \"stockQuantity\": 100\n      }\n    ],\n    \"pageInfo\": {\n      \"curPage\": 1,\n      \"pageSize\": 20,\n      \"totalRows\": 1,\n      \"totalPages\": 1\n    }\n  },\n  \"requestId\": \"{{REQUEST_ID}}\",\n  \"timestamp\": {{TIMESTAMP}},\n  \"xdmfErrorCode\": \"\"\n}"
                        }
                    ]
                }
            ]
        },
        {
            "name": "三、工序及工艺管理模块",
            "item": [
                {
                    "name": "PM-001:预置5道工序(毛坯制造)",
                    "request": {
                        "method": "POST",
                        "header": [
                            {
                                "key": "Content-Type",
                                "value": "application/json"
                            },
                            {
                                "key": "X-Auth-Token",
                                "value": "{{X_AUTH_TOKEN}}"
                            }
                        ],
                        "body": {
                            "mode": "raw",
                            "raw": "{\n  \"params\": {\n    \"code\": \"WP001\",\n    \"name\": \"毛坯制造\",\n    \"productionSteps\": \"1. 铸造原料;2. 锻造成型;3. 初步打磨\",\n    \"defaultDuration\": 60,\n    \"description\": \"行星减速器零件毛坯加工\",\n    \"creator\": \"system\"\n  }\n}"
                        },
                        "url": {
                            "raw": "http://{{iDME_ENDPOINT}}/rdm_{{APP_ID}}_app/services/dynamic/api/WorkingProcedure/create",
                            "protocol": "http",
                            "host": ["{{iDME_ENDPOINT}}"],
                            "path": ["rdm_{{APP_ID}}_app", "services", "dynamic", "api", "WorkingProcedure", "create"]
                        },
                        "description": "预置第1道工序:毛坯制造(WP001),其余4道工序

评论

快捷导航

把好文章收藏到微信

打开微信,扫码查看

关闭

还没有账号?立即注册