标签:
POST
request:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": "CleanWater" } }
response:
{ "data": "8ef75fb5-e946-4542-ab8b-02ae0527fc06", "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-16 00:09:32", "success": true }
request 2:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": "FloorHeating_Water" } }
response2:
{ "data": null, "msg": "sorry, this function still in dev.", "responseCode": { "msgCode": 500, "msgDetail": "Crash" }, "serverTime": "2016-05-16 00:15:54", "success": false }
request 3:
{ "action": "createReport", "token": "039b3b72-c83a-4626-9a66-9302d81000ff", "isDebug": 1, "requestData": { "ConfigKey": "D68F47DD-90A8-4C44-8A33-69DC64E596F8", "ItemType": 4 } }
response 3:
{ "data": "e94b3a77-034b-4154-86c5-a9530169f61c", "msg": "success", "responseCode": { "msgCode": 200, "msgDetail": "OK" }, "serverTime": "2016-05-16 00:20:52", "success": true }
备注:
1) 如果操作成功,返回的是 report key
2) ItemType, 是枚举值. 传参既可接收 int 型值,也可接收完全匹配的字符串。
详情: http://www.cnblogs.com/jwiter/p/5451043.html;
(the end).
标签:
原文地址:http://www.cnblogs.com/jwiter/p/5496723.html