8.app_create_file

192.168.1.66:18333/ws

创建Blockly文件接口

Message:

{
    "cmd": "app_create_file",
    "data": {
        "userId": "test",
        "version": "lite6",
        "folderName": "test111",
        "xmlData": "<xml xmlns='https://developers.google.com/blockly/xml'><block type='set_angle_acceleration' id='TUM:^s#`fiBaLI=KXSG5' x='-602' y='-32'><field name='acceleration'>500</field></block></xml>"
    },
    "id": "1"
}

Request:

  • cmd

    • string,必填,请求接口

  • date

    • Application/json,必填,请求数据

  • id

    • string,必填,请求序列号

Respons:

code=0->成功;
code!=0->失败,-32是写文件内容时错误

\

请求参数

Last updated