URI
<maps_uri>/checkstatus[.<format>]
Supported methods
Parent resource
Introduction
mapsCheckStatus resource is the status for updating map in bulk. Only the manager can update the status.
Supported Methods:
- PUT: Update map checking status in batch.
Supported output formats: rjson, json, html, xml.
Resource hierarchy
HTTP request methods
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/maps/checkstatus.rjson
PUT request
Update map checking status in batch. The status includes: SUCCESSFUL, FAILED, UNCHECKED.
Request parameter
Execute PUT request for mapsCheckStatus resource. Parameters passed in the request body are as follows:
| Name | Type | Description |
| mapIds | Integer[] | The map ID which needs to update the status. |
| checkInfo | CheckInfo | Map checking information. |
Response structure
The response result returned is as the following:
| Field | Type | Description |
| succeed | boolean | Whether the map checking status is updated successfully or not. |
| error | Httperror | Error information. This field will not be displayed if the map checking statu is updated successfully. |
Response example
Execute PUT request for mapsCheckStatus resource: http://localhost:8090/iportal/web/maps/checkstatus.rjson, and update the map checking status. The request body is as follows:
{
"mapIds": [
3,
4
],
"checkInfo": {
"checkStatus": "SUCCESSFUL",
"verifyReason": ""
}
}
The response result in rjson format returned is as follows:
{ "succeed": true}