myServices


URI

<myContent_uri>/services[.<format>]

Supported methods

GET, HEAD

Parent resource

myContent

Introduction

The myServices resource is the collection of all the services registered by the current user.

Supported Methods:

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

Resource hierarchy

HTTP request methods

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

http://supermapiportal:8090/iportal/web/mycontent/services.rjson

GET request

Gets the list of all the services registered by the current user.

Request parameter

If this parameter is not set, then the list of registered services on the first page will be returned. If the parameter is set, the list of the services registered by the user will be returned. The request parameters are included in URI.

Field Type Description
tags String[] Filter by tag.
userNames String[] Filter by user who registered the service. This parameter has expired, that is, SuperMap iPortal 9D or higher version will no longer use this parameter.
types SourceType[] Filter by service type.
checkStatus CheckStatus Filter by verification status.
offline Boolean Filter by whether the service is offline.
orderBy ServiceOrderBy Filter by sort field. Where, the ServiceOrderby.VISITCOUNT, which means sorting by the service count, only takes effect when enabling the service proxy function.
orderType OrderType Sort by ascending or descending.
keywords String[] Filter by keyword.
currentPage int Filter by page number.
pageSize int Filter by page size.
filterFields FilterFields[] Field filtering for keyword queries. Field names need to be capitalized. For example, to filter according to the key characters of the user who registered the service, you need to set: keywords=["admin"]&filterFields=["NICKNAME"].

Response structure

Execute a GET request on the myServices resource to return the list of all the scenes that the current user is allowed to check. It includes the following fields:

Field Type Description
content List<ServiceInfo> Page content.
currentPage int The current page number.
pageSize int The size of each page.
searchParameter SearchParameter The search parameter for the current page.
total int The total record number.
totalPage int The total number of pages.

Response example

The returned rjson format representation after executing the GET request on the myServices resource http://localhost:8090/iportal/web/mycontent/services.rjson is as follows:

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

See