URI

<batchAddScenes_uri>/{batchaddscenesId}[.<format>]

Supported methods

GET, HEAD

Parent resource

batchAddScenes

Introduction

【Deprecated】Gets the rate of the batchAddScenes job.

Supported Methods:

  • GET: Gets the rate of the batchAddScenes job.
  • HEAD: Checks whether the batchAddScenesRate 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/scenes/batchaddscenes/{batchaddscenesId}.rjson

GET request

Gets the rate of the batchAddScenes job.

Response structure

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

Field Type Description
failedCount int The failed task count.
harvestId String ID of the newly added scene.
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 batchAddScenesRate resource http://localhost:8090/iportal/web/scenes/batchaddscenes/36dcd116-40a6-409d-82cb-82644146d313.json.The response result in rjson format returned is as follows:

{

    "failedCount": 0,

    "harvestId": "36dcd116-40a6-409d-82cb-82644146d313",

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

See