service


URI

<myData_uri>/service[.<format>]

Supported methods

GET, HEAD

Parent resource

mydata

Introduction

service resource is used to get service publish information. This resource has expired, which means SuperMap iPortal 8C (2017) or higher version won't use this resource any more. This resource is replaced by services resource.

Supported Methods:

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/mycontent/datas/{id}/service.rjson

GET request

Get the service publish information.

Response structure

The structure of the response resource representation is as follows:

Field

Type Description

address

String Return the service URL.

Response example

Implement the GET request on the service resource http://localhost:8090/iserver/manager/logsHar.rjson. Return rjson results:

{

    "address": "http://demo.iportal.com:8090/iportal/userservices/1/rest"

}

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 if the service resource exists, or if the service resource can be accessed by clients. It can also determine if the service resource supports an output format <format> if performed on a URI with .<format> included.

See