chaofx

政府监管平台api
政府监管平台接口文档/gmmp/ **网关管理网关分页列表Url: /gateway/pagehttpMethod...
扫描右侧二维码阅读全文
16
2021/06

政府监管平台api

政府监管平台接口文档

/gmmp/ **

网关管理

网关分页列表

  • Url: /gateway/page
  • httpMethod: GET
  • RequestParam:
 status:"开启状态 0未开启 1开启 全部传空"
 name:"网关名"
 "current":1
 "size:10
  • return
[ 
        {
            "id": "12",
            "name": "一个网关名称",
            "port": 8888,
            "status": 0,
            "remark": "这是一个备注"
            "protocolName": "JTT809"
            "protocolVersion": "2011"
        },
....
....
]

所有网关列表

  • Url: /gateway
  • httpMethod: GET
  • return
[ 
        {
            "id": "12",
            "name": "一个网关名称",
            "port": 8888,
            "status": 0,
            "remark": "这是一个备注"
            "protocolName": "JTT809"
            "protocolVersion": "2011"
        },
....
....
]

网关新增

  • Url: /gateway
  • httpMethod: POST
  • RequestBody
{
    "name": "一个网关名称",
    "port": 8888,
    "remark": "这是一个备注"
    "protocolId": "协议id"
}

网关删除

  • Url: /gateway/{id}
  • httpMethod: DELETE
  • PathParam:
 id:"网关id 参数这地址路径上"
  • return
{
 true
}

网关修改

  • Url: /gateway
  • httpMethod: PUT
  • RequestBody
{
    id:"网关id "
    "name": "一个网关名称",
    "port": 8888,
    "remark": "这是一个备注"
    "protocolId": "协议id"
}
  • return
{
  true
}

网关详情

  • Url: /gateway/{id}
  • httpMethod: GET
  • PathParam:
 id:"网关id 参数这地址路径上"
  • return
{
    "id": "12",
    "name": "一个网关名称",
    "port": 8888,
    "status": 0,
    "remark": "这是一个备注"
    "protocolName": "JTT809"
    "protocolVersion": "2011"
}

修改网关开启关闭状态

  • Url: /gateway/{id}/gateway_switch
  • httpMethod: PUT
  • PathParam:
 id:"网关id 参数这地址路径上"
  • return
{
   true
}

协议请求接口

获取所有的协议

  • Url: /protocol
  • httpMethod: GET
  • return
[ 
        {
            "id": "12",
            "protocolName": "JTT809"
            "protocolVersion": "2011"
        },
....
....
]

接入平台接口

接入平台分页列表

  • Url: /accessPlatform/page
  • httpMethod: GET
  • RequestParam:
 gatewayName:"网关名称"
 name:"接入平台名称"
 "current":1
 "size:10
  • return
[ 
        {
            "id": "12",
            "name": "接入平台名称",
            "gatewayName": "网关名称",
            "contactName": "联系人",
            "contactMobile": "联系人手机号"
            "encryptFlag": 是否加密 0不加 1加
            "remark": "备注"
        },
....
....
]

接入平台删除

  • Url: /accessPlatform/{id}
  • httpMethod: DELETE
  • PathParam:
 id:"接入平台id 参数这地址路径上"
  • return
{
 true
}

接入平台详情

  • Url: /accessPlatform/{id}
  • httpMethod: GET
  • PathParam:
 id:"接入平台id 参数这地址路径上"
  • return
{
    "id": "12",
    "name": "接入平台名称",
    "gatewayName": "网关名称",
    "contactName": "联系人",
    "contactMobile": "联系人手机号"
    "username": "账号"
    "password": "密码"
    "encryptFlag": 是否加密 0不加 1加
    "msgGnssCenterId":12313【接入码】
    "m1":12313【加密项】
    "iC1":12313【加密项】
    "iA1":12313【加密项】
    "remark": "备注"
}

接入平台增加

  • Url: /accessPlatform
  • httpMethod: POST
  • RequestBody
{
    "name": "接入平台名称",
    "gatewayId": "网关id",
    "contactName": "联系人",
    "contactMobile": "联系人手机号"
    "username": "账号"
    "password": "密码"
    "encryptFlag": 是否加密 0不加 1加
    "msgGnssCenterId":12313【接入码】
    "m1":12313【加密项】
    "iC1":12313【加密项】
    "iA1":12313【加密项】
    "remark": "备注"
}

接入平台修改

  • Url: /accessPlatform
  • httpMethod: PUT
  • RequestBody
{   
    id:"接入平台id "
    "name":"接入平台名称"
    "contactName": "联系人",
    "contactMobile": "联系人手机号"
    "remark": "这是一个备注"
}
  • return
{
  true
}

接入平台白名单修改

  • Url: /{id}/white_ip
  • httpMethod: PUT
  • RequesParam
{   
    "ips":"ip分号分割的列表 "
}
  • return
{
  修改成功
}


版权属于:本文为原创文章,版权归本博所有,转载请注明出处!。

如果文章 语句 文字 描述等有错误 只能请在座的各位多多包涵 博主说话没有切格瓦拉好听。

感谢您本次的阅读

Last modification:June 23rd, 2021 at 08:26 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

隐藏