Description:
- Start supervision: After the train is dispatched, start the supervision analysis, that is, the status of the waybill changes directly to the dispatched;
- Stop Analysis service: End start supervision analysis, that is, the status of the waybill changes directly to closed.
Version:
Ver. |
Maker |
Established Date |
Revision Date |
1.0.0 |
lenny |
2022-02-07 |
|
Request URL:
Request Method:
Request Header:
Parameter Name |
Whether Must |
Type |
Instructions |
Content-Type |
Yes |
string |
Request Type: x-www-form-urlencoded |
Request Parameter:
Parameter Name |
Whether Must |
Type |
Instructions |
tripId |
Yes |
string |
Trip ID |
status |
Yes |
int |
1:Start Analysis service 2:Stop Analysis service |
fTokenID |
Yes |
string |
Token |
Return Example:
Return when correct:
{
"Result": 200,
"Message": "success",
"FObject": null
}
Return on error:
{
"Result": 105,
"Message": "Fail:tripId is null or status is wrong",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:without this tripId",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:start analysis fail",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:task is being initialized",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:no device is bound to this trip ID",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:other",
"FObject": null
}
{
"Result": 105,
"Message": "Fail:token error or timeout",
"FObject": null
}
Return Parameter Description:
Parameter Name |
Type |
Instructions |
Request Example:
String result = "";
String url ="http://icloud.assetscontrols.com:8092/api/AscentPH/SendRequestDisableEnableRouteAnalysis?tripId=BOC-A-12312021-0002&status=1&fTokenID=DB7F20D9-84C3-44C3-B05A-06A9C392A189";
HttpPost post = new HttpPost(url);
CloseableHttpClient client = HttpClients.createDefault();
HttpResponse response = client.execute(post);
HttpEntity entity = response.getEntity();
String result = EntityUtils.toString(entity, "UTF-8");
return result;
文档更新时间: 2023-02-06 16:10 作者:刘家帅