URI
<map_uri>/visitcount[.<format>]
Supported methods
Parent resource
Introduction
The number of visits to the map.
Supported Methods:
- GET: Gets the number of visits to the map.
- HEAD: Check whether the mapVisitCount resource exists, whether it is allowed to access the mapVisitCount resource.
Supported representation formats: RJSON, JSON, HTML and 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/maps/{id}/visitcount.rjson
GET request
Gets the number of visits to the map.
Response example
The returned rjson format representation after executing the GET request on the user resource http://localhost:8090/iportal/web/maps/1/visitcount.rjson is as follows:
30
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.
The HEAD request can be used to check if the mapVisitCountresource exists, or if the mapVisitCount resource is allowed to be accessed by clients. It can also be used to determine if the mapVisitCount resource supports an representation in the output format of <format> when you perform a HEAD request on a URI with .<format> .