应用接入在线调试操作指引

最近更新时间:11/9/2023, 4:15:53 PM作者:andrewren(任豪)

    应用接入在线调试功能目前支持应用鉴权,单点登陆,告警同步,消息同步,待办同步,待办回调接口的调试功能。

    1. 新建应用,根据应用信息配置 image.png
    2. 根据勾选的应用类型,配置接入信息 image.png
    3. 单点登陆在线调试示例: image.png 接口地址:https://test.yunding.wedev.cool/cgi/capi 调试参数示例:
    {
        "ClientId": "7116210dee0281a23f1f",// 输入调试应用密钥
        "Nonce": "123",
        "RedirectUri": "https://lowcode-9gx1hsop78d185fc-1257948216.tcloudbaseapp.com/__auth/",
        "ResponseType": "code",
        "Scope": "all",
        "state": "123"
    }

    应用鉴权在线调试示例: image.png 接口地址:https://test.yunding.wedev.cool/iamapp/api/v1/DescribeAccessToken 调试参数示例:

    {
    "Code": "NJKZMZA5ZJCTYWE1NY0ZMMQ4LTLIZJITOWI1ODY2MGY3ZDVM",//单点登陆接口返回
    "RedirectUri": "https://lowcode-9gx1hsop78d185fc-1257948216.tcloudbaseapp.com/__auth/"
    }

    Ipaas待办同步在线调试示例 image.png 接口地址:https://listener-ipaas.hyper-link.com.cn/119804/gain/message/unread/content 调试参数示例:

    {
      "application": "erp",
      "userInfo": {
        "nickName": "曹猛",
        "email": "",
        "cellPhone": "",
        "accountId": "1135256762010568317"
      },
      "limit": 10,
      "offset": 0
    }

    权限申请待办在线调试: 配置接口密钥和鉴权接口 image.png

    调用应用接口key:IUyrS93E2lC1nReXDzhcwe2MG5Fh2KqeWhXtgmK6hs3qUmglqDzsZ09q 调用应用接口secret:H62L6nWDXFePuXVqPCn 鉴权接口:https://test.yunding.wedev.cool/asm/api/access_token

    接口地址:https://test.yunding.wedev.cool/asm/api/backlog_list image.png

    权限申请待办回调: 接口地址:https://test.yunding.wedev.cool/asm/api/check 调试参数示例:

    {
      "id": "1809",//待办id
      "userId": "511008144529233333",
      "status": "1",
      "comment": "同意"
    }

    待办推送示例: 应用接入鉴权配置同权限申请 推送示例地址:https://test.yunding.wedev.cool/asm/api/backlog/push

    {
      "Id": "952711111114",
      "Belong": "a6be08d22a7d746d91db",
      "Name": "任务名称111",
      "Describe": "任务内容111",
      "CreateAt": "2023-07-07 15:04:05",
      "Detail": "{\"申请人\": \"zhangsan\", \"详情\": \"待办申请\",\"日期\": \"2023-07-07\"}",
      "BackUrl": "https://enterprise.wedev.cool/safeproduction/hidden-danger-report-detail/9836a03b4250494aa91ac0941f98da23",
      "Status": "0",
      "proposer": "1282267492331715111",
      "auditors": [
        {
          "auditor": "511008144529233333"
        }
      ]
    }

    消息推送示例: 推送地址:https://iam-api.test.yunding.wedev.cool 调试参数示例: OpMasterId:如果是租户必选,不输入则默认为超管账号

    {
        "Action": "DescribeSendMsg",
        "Receivers": [
            "511008144529233333"
        ],
        "ReceiverType": 0,
        "Type": 0,
        "TplType": 0,
        "Source": 1030,
        "TplId": 10305,
        "Title": "课程学习提醒",
        "MsgAction": 4,
        "OpMasterId":"511008144529233333",
        "Params": [
            "123456"
        ]
    }

    告警推送示例: image.png

    推送地址:https://test.yunding.wedev.cool/asm/api/StdAlertReceive/Push MasterId:如果是租户必选,不输入则默认为超管账号 调试参数示例:

    {
      "Id": "100",
      "Message": "告警测试",
      "Level": "generally",
      "State": "firing",
      "Source": "business", //告警标识
      "StartAt": 1675927230,
      "EndAt": 0,
      "MasterId" : "1323133296057516548"
    }

    告警暂时没有可拉取的配置应用