URI
<plot_uri>/smlInfos[.<format>]
Supported methods
Parent resource
Introduction
The smlInfos resource is used to obtain a list of server situation graph files.
Supported Methods:
- GET: Get all server situation graph files information.
- HEAD: Checks whether the smlInfos resource exists or whether it has permission to access the resource.
Supported output formats: rjson, json, html, xml.
Resource hierarchy
HTTP request methods
Implement the HTTP request on the following URI, where supermapiserver is the server name, with rjson being the output format.
http://supermapiserver:8090/iserver/services/plot-TY/rest/plot/smlInfos.rjson
GET request
Get all server situation graph files information.
Request parameter
Name | Type | Description |
start | int | Start to get the server situation graph files. |
count | int | Specifies the number of the server situation graph files. |
Response structure
GET request in smlInfos resource is a server situation graph file collection in the entity of response messaging, where the structure of a single resource description is as follows:
Field | Type | Description |
name | String | The name of the server situation graph file. |
Response example
Execute GET request for smlInfos resource: http://supermapiserver:8090/iserver/services/plot-TY/rest/plot/smlInfos.rjson. The returned representation in rjson format is as follows:
[
{
"SMLAuthor": "",
"SMLDepat": "",
"SMLDesc": "",
"SMLFileName": "plottingSave",
"SMLName": "",
"SMLSeclevel": "",
"SMLTime": ""
}
]
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 smlInfos resource exists or whether the client has authority to access the resource. It can quickly determine whether the smlInfos resource supports the representation in <format> format by performing HEAD request on URI with <format>.