<services_uri>/checkstatus[.<format>]
serviceCheckStatus resource is to update the service checking status in batch. Only administrator can update the service checking status.
Supported Methods:
Supported output formats: RJSON, JSON, HTML, XML.
Implement the HTTP request on the following URI, where supermapiportal is the server name, with rjson being the output format.
http://supermapiportal:8090/iportal/web/services/checkstatus.rjson
Update service checking status in batch. The service checking status includes SUCCESSFUL, FAILED, UNCHECKED.
Execute PUT request for servicesCheckStatus resource. Parameters passed in the request body are as follows:
Name | Type | Description |
serviceIds | Integer[] | The service ID that needs to update the status. |
checkInfo | CheckInfo | Service checking information. |
The response result returned is as the following:
Field | Type | Description |
succeed | boolean | Whether the service checking status is updated successfully or not. |
error | Httperror | Error information. This field will not be displayed if the service checking statu is updated successfully. |
Execute PUT request for servicesCheckStatus resource: http://localhost:8090/iportal/web/services/checkstatus.rjson, and update the service checking status. The request body is as follows:
{
"serviceIds": [
3,
4
],
"checkInfo": {
"checkStatus": "SUCCESSFUL",
"verifyReason": ""
}
}
The response result in rjson format returned is as follows:
{ "succeed": true}