resourceContributors


URI

<portalStatistics_uri>/resource/contributors[.<format>]

Supported methods

GET, HEAD

Parent resource

portalStatistics

Introduction

resourceContributors is the contributor information resource of the new resource. By sending the GET request, it can get the contributor information of the new resource in a period.

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/manager/portalstatistics/resource/contributors.rjson

GET request

Get the contributor information of the new resource in a period.

Request parameter

If the parameter is not set, it will return the contributor information of all new resources of iPortal; if set, it will return the contributor information in a period. The request parameters should be contained in URI.

Name Type Description
startTime Long Query by the creation start time of the resource.
endTime Long Query by the creation end time of the resource.
orderBy OrderBy Query by the ordering field.
currentPage int Paging number.
pageSize int Page size.
orderType OrderType Query according to sort ascending/descending order.
resourceType ResourceType The resource type. Includes: MAP (map resources), SERVICE (service resources), SCENE (scene resources), DATA (data resources), APP (application resources).

Response structure

Perform GET request on the resourceContributors resource, return the contributor list information of the new resource. Including the following fields:

Field Type Description
content List<ResContributorInfo> Page content.
currentPage int The current page number.
pageSize int The page size.
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 implementing the GET request on the resourceContributors resource http://localhost:8090/iportal/manager/portalstatistics/resource/contributors.rjson is as follows:

{

    "content": [

        {

            "count": 4,

            "userName": "admin"

        }

    ],

    "currentPage": 1,

    "pageSize": 10,

    "searchParameter": {

        "currentPage": 1,

        "endTime": 1492484197354,

        "keywords": null,

        "orderBy": null,

        "orderType": "ASC",

        "pageSize": 10,

        "startTime": 1492074997088

    },

    "total": 1,

    "totalPage": 1

}

If needed to get the contributors list information in a period, please set startTime=1492074997089&endTime=2492063745789. The returned rjson format representation after implementing the GET request on the resourceContributors resource http://localhost:8090/iportal/manager/portalstatistics/resource/contributors.rjson?startTime=1492074997089&endTime=2492063745789 is as follows:

{

    "content": [

        {

            "count": 3,

            "userName": "admin"

        }

    ],

    "currentPage": 1,

    "pageSize": 10,

    "searchParameter": {

        "currentPage": 1,

        "endTime": 2492063745789,

        "keywords": null,

        "orderBy": null,

        "orderType": "ASC",

        "pageSize": 10,

        "startTime": 1492074997089

    },

    "total": 1,

    "totalPage": 1

}

HEAD request

Returns the same HTTP response header as the GET request, but does not have the response entity. It can get the metadata information in the response header without transferring the whole response content. Metadata information includes media type, character encoding, compression encoding, entity content length, and so on.

The HEAD request can be used to determine whether the resourceContributors resource exists or whether the client has authority to access the resourceContributors resource. It can quickly determine whether the resourceContributors resource supports the representation in <format> format by performing HEAD request on URI with <format>.

See