硬件开发工具链平台云服务-上传图纸文件:请求示例

时间:2024-10-18 11:53:51

请求示例

  • 零件上传-单片上传
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "name" : "4903N12.STEP",
      "check_code" : "fefeb94f12c7d604c4b2c9570ac847864a731e9a029a2d6d81021bbc3ab52343",
      "is_chunked" : false,
      "type" : "PART",
      "source" : "temp",
      "file" : "binary(二进制文件流)"
    }
  • 零件上传-分片上传(初始化阶段)
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "name" : "010758215.stp",
      "check_code" : "b82bdd878b4788f95744eaa646a7a286ef5f4110caa703f9b521f4fbb59f48aa",
      "is_chunked" : true,
      "chunk_total" : 29,
      "type" : "PART",
      "source" : "temp",
      "request_type" : "init"
    }
  • 零件上传-分片上传(上传阶段)
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "id" : "4f2bddfa-dee7-4858-b41c-34705e9642a3",
      "name" : "010758215.stp",
      "check_code" : "b82bdd878b4788f95744eaa646a7a286ef5f4110caa703f9b521f4fbb59f48aa",
      "is_chunked" : true,
      "type" : "PART",
      "source" : "temp",
      "request_type" : "upload",
      "chunk_total" : 29,
      "chunk_index" : 1,
      "file" : "binary(二进制文件流)"
    }
  • 装配体上传-单片上传
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "name" : "ensamble_suicide.zip",
      "check_code" : "af101d8c580ea70cb3c05fccf871a38303fb94e6cca00ff4214aebbab674b5df",
      "is_chunked" : false,
      "type" : "ASSEMBLY",
      "main_file_name" : "ensamble_suicide.asm.1",
      "source" : "temp",
      "file" : "binary(二进制文件流)"
    }
  • 装配体上传-分片上传(初始化阶段)
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "name" : "engine_teste_02总装.asm.1.zip",
      "check_code" : "a4a3e7aca08918a148c52ffee862add3c78ac57c204847f91151297ce211a58a",
      "is_chunked" : true,
      "chunk_total" : 25,
      "type" : "ASSEMBLY",
      "main_file_name" : "engine_teste_02总装.asm.1",
      "source" : "temp",
      "request_type" : "init"
    }
  • 装配体上传-分片上传(上传阶段)
    /basic/coremgr/public/api/v1/drawing/upload
    
    {
      "name" : "engine_teste_02总装.asm.1.zip",
      "check_code" : "a4a3e7aca08918a148c52ffee862add3c78ac57c204847f91151297ce211a58a",
      "is_chunked" : true,
      "chunk_total" : 25,
      "type" : "ASSEMBLY",
      "main_file_name" : "engine_teste_02总装.asm.1",
      "source" : "temp",
      "request_type" : "upload",
      "id" : "f1afbc15-b4db-4ff6-9bd4-80160a4f1bf8",
      "file" : "binary(二进制文件流)",
      "chunk_index" : 1
    }
support.huaweicloud.com/api-craftartsipdcenter/UploadDrawing.html