Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

SMK API Get a map configuration by ID

Dylan edited this page May 9, 2018 · 1 revision

{GET} /MapConfigurations/{id} - Retrieve the latest versions of a SMK Map Configurations (non-published only)

Executing a GET at the /MapConfigurations/{id} endpoint with the SMK id will return the related Map Configuration document

Note
The document returned will be the latest version, not the published version. To get the published version, you must call the /Published/ endpoints NOTE: It is possible to fetch previous version from this endpoint by including a query parameter of 'version' with the desired version number. This is not the preferred method of getting the current published configuration.

Example of curl command:

$ curl 'http://localhost:8080/MapConfigurations/my-application' -i \
    -H 'Accept: application/json'

Example of HTTPie command:

$ http GET 'http://localhost:8080/MapConfigurations/my-application' \
    'Accept:application/json'

Path Parameters:

Table 1. /MapConfigurations/{id}
Parameter Description

id

The SMK Map Configuration ID

Example of http request:

GET /MapConfigurations/my-application HTTP/1.1
Accept: application/json
Host: localhost:8080

Example of http response:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 474

{"lmfId":"my-application","lmfRevision":1,"name":"My Application","surround":{"type":"default","title":"My Application"},"viewer":{"type":"leaflet","location":{"extent":[null,null,null,null],"center":[-139.1782,47.6039],"zoom":5.0},"baseMap":"Imagery"},"tools":[{"type":"menu","enabled":true,"title":"Menu","showPanel":true},{"type":"dropdown","enabled":true,"title":"","showPanel":true}],"_id":"ad593c1e44230b8894a465a049090521","_rev":"1-945e9f32e52727f4e75b9f603cb498cf"}

Response body:

{"lmfId":"my-application","lmfRevision":1,"name":"My Application","surround":{"type":"default","title":"My Application"},"viewer":{"type":"leaflet","location":{"extent":[null,null,null,null],"center":[-139.1782,47.6039],"zoom":5.0},"baseMap":"Imagery"},"tools":[{"type":"menu","enabled":true,"title":"Menu","showPanel":true},{"type":"dropdown","enabled":true,"title":"","showPanel":true}],"_id":"ad593c1e44230b8894a465a049090521","_rev":"1-945e9f32e52727f4e75b9f603cb498cf"}
Clone this wiki locally