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

SMK API Get a published map configuration

Dylan edited this page May 9, 2018 · 1 revision

{GET} /MapConfigurations/Published/{id} - Fetch a published Map Configuration

Executing a GET at the /MapConfiguration/Published/{ID} enpoint with a published map configuration ID will return the configuration details.

Example of curl command:

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

Example of HTTPie command:

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

Path Parameters:

Table 1. /MapConfigurations/Published/{id}
Parameter Description

id

The SMK Map Configuration ID

Example of http request:

GET /MapConfigurations/Published/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: 498

{"lmfId":"my-application","lmfRevision":1,"name":"My Application Edited","published":true,"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":"7-1c601def198c4106ea9fac171ad32475"}

Response body:

{"lmfId":"my-application","lmfRevision":1,"name":"My Application Edited","published":true,"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":"7-1c601def198c4106ea9fac171ad32475"}

For details on the published map config resource, see the Map Config resource documentation

Clone this wiki locally