<portalStatistics_uri>/resource/visit/totalcount[.<format>]
The totalVisitCount resource represents the total accessing times of some resource. It can get the total accessing times of some resource by sending the GET request. Currently, you can get the total accessing number to the map and service resources in the portal. For this function, you need to enable the service agent function and the service agent accessing statistics function.
Supported Methods:
Supported output formats: rjson, json, html, xml.
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/visit/totalcount.rjson
Get the total accessing number to some resources.
When sending the request, it needs to include the following parameters in the request entity, and the request parameters should be contained in URI.
| Name | Type | Description |
| type | ResourceType | [Required] Resource type. Currently supports MAP (map resources), SERVICE (Service resources). |
Get the total accessing number to the service resources in the portal. For this function, you need to enable the service agent function and the service agent accessing statistics function and set: type=SERVICE. The returned rjson format representation after implementing the GET request on the totalVisitCount resource http://localhost:8090/iportal/manager/portalstatistics/resource/visit/totalcount.rjson?type=SERVICE is as follows:
121
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 totalVisitCount resource exists or whether the client has authority to access the resource. It can quickly determine whether the totalVisitCount resource supports the representation in <format> format by performing HEAD request on URI with <format>.