<service_uri>/checkstatus[.<format>]
serviceCheckStatus resource is to update a single service checking status. Only administrator can query and 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/{id}/checkstatus.rjson
Get the checking status of a single service. The service checking status includes SUCCESSFUL, FAILED, UNCHECKED.
Implement the GET request on the serviceCheckStatus resource http://localhost:8090/iportal/web/services/1/checkstatus.rjson. Return rjson results:
SUCCESSFUL
Update the checking status of a single service. The service checking status includes SUCCESSFUL, FAILED, UNCHECKED.
Execute PUT request for serviceCheckStatus resource. The request body is as follows:
Name | Type | Description |
checkStatus | CheckStatus | The checking status |
verifyReason | String | The checking comments. |
The response result returned is as the following:
Field | Type | Description |
succeed | boolean | Whether the checking status of a a single service is updated successfully or not. |
error | Httperror | Error information. This field will not be displayed if the checking status of a single service is updated successfully. |
Execute PUT request for serviceCheckStatus resource http://localhost:8090/iportal/web/services/1/checkstatus.rjson. The request body is as follows:
{"checkStatus":FAILED,"verifyReason":null}
The response result in rjson format returned is as follows:
{ "succeed": true}
Asks for the response identical to the one that would correspond to a GET request, but without the response body. This is useful for retrieving meta-information written in response headers, without having to transport the entire content. The meta-information includes the media-type, content-encoding, transfer-encoding, content-length, etc.
HEAD request can be used to check if the serviceCheckStatus resource exists, or if the serviceCheckStatus resource can be accessed by clients. It can also determine if the serviceCheckStatus resource supports an output format <format> if performed on a URI with .<format> included.