URI

<batchAddMaps_uri>/{batchaddmapsId}[.<format>]

Supported methods

GET, HEAD

Parent resource

batchAddMaps

Introduction

【Deprecated】Rate of the batchAddMaps job.

Supported Methods:

  • GET: Gets the rate of the batchAddMaps job.
  • HEAD: Checks whether the batchAddMapsRate resource exists, and whether it can be accessed with a certain permission.

Supported output formats: rjson, json, html, xml.

Resource hierarchy

HTTP request methods

Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.

http://supermapiportal:8090/iportal/web/maps/batchaddmaps/{batchaddmapsId}.rjson

GET request

Gets the rate of the batchAddMaps job.

Response structure

The structure of the response resource representation after implementing the GET request on the batchAddMapsRate resource will be as follows:

Field Type Description
failedCount int The failed task count.
harvestId String ID of the newly added map.
rate float Task completed ratio.
result List<Object> The results of the task returned.
successCount int Successful task count.
taskCount int Total task count.

Response example

Implement the GET request on the batchAddMapsRate resource http://localhost:8090/iportal/web/maps/batchaddmaps/9d8aa43b-993a-4528-b7ff-ce32ed398bf4.json.The response result in rjson format returned is as follows:

{

    "failedCount": 0,

    "harvestId": "9d8aa43b-993a-4528-b7ff-ce32ed398bf4",

    "rate": 1,

    "result": [],

    "successCount": 46,

    "taskCount": 46

}

HEAD request

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 whether the batchAddMapsRate resource exists, or whether the the client has the permission to access it. It can also determine if the batchAddMapsRate resource supports an output format <format> if performed on a URI with .<format> included.

See