<binary_uri>/dataimport[.<format>]
The dataimport resource can be used to upload binary file to DataStore. By sending POST request to dataimport resource, you can upload binary file to DataStore.
Supported Methods:
Supported output formats: rjson, json, html, xml.
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiserver:8090/iserver/services/datacatalog/rest/datacatalog/binary/dataimport.rjson
Executes upload to put binary file in DataStore.
Executes POST request on dataimport resource. The response arguments are as follows:
Field | Type | Description |
dataId | String | Id of uploaded file. |
succeed | boolean | Whether it's successful to import data. |
The returned rjson format representation after implementing the GET request on the dataimport resource http://supermapiserver:8090//iserver/services/datacatalog/rest/datacatalog/binary/dataimport.rjson is as follows:
{
"dataId":"594ca83fe084f411bcb22575"
"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 contained 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 dataimport resource exists, or whether the the client has the permission to access it. It can also determine if the dataimport resource supports an output format <format> if performed on a URI with .<format> included.