请求URL:

http://itms.plus:8888/api/template/view

请求方式:

  • GET

请求参数:

参数名 必须 类型 说明
page int 页数,默认1

返回示例:

正确时返回:

{
  "status": "200",
    "data": {
        "count": 13,                                # 模板总数
        "page": "1"
        "list": [
            {
                "template_name": "iptv拨号",        # 模板名称
                "creater": "测试员",                # 管理员
                "template_id": 460,                 # 模板编号
                "worklist_name": "WAN_PPPoE",       # 模板类型
                "parametes": {                      # 模板参数 参考工单
                    "username": "1",
                    "service": "IPTV",
                    "enable_switch": "True",
                    "lan_port": "LAN2",
                    "multicast_vlan": "333",
                    "password": "2",
                    "vlan_id": "222"
                }
            },
            {
                "template_name": "dhcp",
                "creater": "测试员",
                "template_id": 381,
                "worklist_name": "WAN_DHCP",
                "parametes": {
                    "enable_switch": "True",
                    "vlan_id": "232",
                    "lan_port": "LAN1",
                    "service": "INTERNET"
                }
            },
            {
                "template_name": "多wan",
                "creater": "测试员",
                "template_id": 365,
                "worklist_name": "Multi_Wan",
                "parametes": {
                    "enable_switch": "True",
                    "vlan_id": "11",
                    "lan_port": "LAN3",
                    "service": "OTHER2"
                }
            }
        ],
    }
}

错误时返回:

{
  "status": "200",
  "data": {
    "list": [],
    "count": 0
    "page": 1
  }
}
作者:iTMS  创建时间:2023-06-23 19:25
最后编辑:iTMS  更新时间:2024-09-28 22:44