myScenes


URI

<mycontent_uri>/scenes[.<format>]

Supported methods

GET, HEAD

Parent resource

myContent

Introduction

myScenes is the collection of all the scenes added 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/scenes.rjson

GET request

Gets the list of all the scenes added by the current user.

Request parameter

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

Field Type Description
tags String[] Filter by the scene tag.
userNames String[]

Filter by user who added the scene. This parameter has expired, that is, SuperMap iPortal 9D or higher version will no longer use this parameter.

 

orderBy SceneOrderBy Filter by sorting the field.
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 scene name, you need to set: keywords=["admin"]&filterFields=["NICKNAME"].

Response structure

Execute a GET request on the myScenes 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<SceneInfo> 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 user resource http://localhost:8090/iportal/web/mycontent/scenes.rjson is as follows:

{

    "content": [

        {

            "authorizeSetting": [

                {

                    "aliasName": "admin",

                    "entityId": null,

                    "entityName": "admin",

                    "entityType": "USER",

                    "permissionType": "DELETE"

                }

            ],

            "createTime": 1461672562050,

            "description": null,

            "id": 12,

            "name": "ChinaProvinces",

            "nickname": "admin",

            "tags": null,

            "thumbnail": null,

            "updateTime": 1461672562050,

            "url": "http://192.168.120.40:8090/iserver/services/3D-ChinaProvinces/rest/realspace/scenes/ChinaProvinces",

            "userName": "admin",

            "visitCount": 0

        },

        {

            "authorizeSetting": [

                {

                    "aliasName": "admin",

                    "entityId": null,

                    "entityName": "admin",

                    "entityType": "USER",

                    "permissionType": "DELETE"

                }

            ],

            "createTime": 1461672464399,

            "description": null,

            "id": 11,

            "name": "Theme3d",

            "nickname": "admin",

            "tags": null,

            "thumbnail": null,

            "updateTime": 1461672464399,

            "url": "http://192.168.120.40:8090/iserver/services/3D-sample/rest/realspace/scenes/Theme3d",

            "userName": "admin",

            "visitCount": 0

        },

        {

            "authorizeSetting": [

                {

                    "aliasName": "admin",

                    "entityId": null,

                    "entityName": "admin",

                    "entityType": "USER",

                    "permissionType": "DELETE"

                }

            ],

            "createTime": 1461719177139,

            "description": null,

            "id": 13,

            "name": "osgb",

            "nickname": "admin",

            "tags": null,

            "thumbnail": null,

            "updateTime": 1461719177139,

            "url": "http://192.168.120.40:8090/iserver/services/3D-osgb/rest/realspace/scenes/osgb",

            "userName": "admin",

            "visitCount": 0

        },

        {

            "authorizeSetting": [

                {

                    "aliasName": "admin",

                    "entityId": null,

                    "entityName": "admin",

                    "entityType": "USER",

                    "permissionType": "DELETE"

                }

            ],

            "createTime": 1461719177139,

            "description": null,

            "id": 14,

            "name": "webgl",

            "nickname": "admin",

            "tags": null,

            "thumbnail": null,

            "updateTime": 1461719177139,

            "url": "http://192.168.120.40:8090/iserver/services/3D-osgb/rest/realspace/scenes/webgl",

            "userName": "admin",

            "visitCount": 0

        }

    ],

    "currentPage": 1,

    "pageSize": 9,

    "searchParameter": {

        "currentPage": 1,

        "currentUser": null,

        "dirIds": null,

        "filterFields": null,

        "groupIds": null,

        "isNotInDir": false,

        "keywords": null,

        "orderBy": null,

        "orderType": "ASC",

        "pageSize": 9,

        "resourceIds": null,

        "tags": null,

        "userNames": [

            "admin"

        ]

    },

    "total": 4,

    "totalPage": 1

}

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

See