文件名称:异常返回-python tricks a buffet of awesome python features
文件大小:1.81MB
文件格式:PDF
更新时间:2024-07-09 04:32:59
IoT 智能家居
b. 租户接口测试 (1) 查询所有租户 curl -X GET http://127.0.0.1:5122/iot/api/tenants (2) 查询租户 curl -X GET http://127.0.0.1:5122/iot/api/tenants/test (3) 创建租户 curl -X POST http://127.0.0.1:5122/iot/api/tenants -d'{"id":"test1","name":"testtenant","authenticationToken":"","authorizedUse rIds":["admin"],"metadata": {},"ext":{}}' (4) 更新租户信息 curl -X PUT http://127.0.0.1:5122/iot/api/tenants -d'{"id":"test1","name":"testtenant","authenticationToken":"","authorizedUse rIds":["admin"],"metadata": {},"ext":{}}' (5) 删除租户 curl -X DELETE http://127.0.0.1:5122/iot/api/tenants/test1 (6) 异常返回 { "code": 40x, "result": { "authenticationToken": "", "authorizedUserIds": [], "createdBy": "", "createdDate": "", "ext": {}, "id": "", "metadata": {}, "name": "" }