<feature_uri>/attachments
Attachments resource represents the attachment collection that needs to be asociated with features.
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/data-world/rest/data/feature/0-14-0/attachments
Get the attachment collection that is associated with features. Get the attachment list by GET request for the attachments resource.
The returned resource representation is an attachment array if GET request is executed on the attachments resource. The corresponding Java class is AttachmentInfo. The fields are:
Field | Type | Description |
name | String[] | Name of the uploaded file. |
size | long | Uploaded file size, in Bytes. |
id | int | The system will assign an ID to this file if the file is uploaded. |
contentType | String[] | The type of the uploaded file. |
Implement GET request for attachments resource. The rjson format representation is as follows:
http://supermapiserver:8090/iserver/services/data-jingjin/rest/data/feature/0-8-2/attachments.rjson
The result returned is as the following:
[{
"contentType": "image/png",
"id": 1,
"name": "metadata.png",
"size": 40104
}]
You could upload attachments which are related with features when implementing POST request. The attachments could be files like pictures, documents, videos, etc.
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 attachments resource exists, or if the attachments resource can be accessed by clients. It can also determine if the attachments resource supports an output format <format> if performed on a URI with .<format> included.