Maps admin API Resource

Abstract class for REST webservices

DELETE /admin/maps/{mapdatasourceId}

Remove map data source

Request Parameters
name type description default constraints
mapdatasourceId path ID of map data source   long
Response Body
media type data type description
application/json object JSON Response with information, whether the removing has or has not been succeeded.

POST /admin/maps/retrieve/json

Retrieves map data sources offered by passed service

Example of request:

{"serviceType":"OSM|TMS|WMTS","serviceURL":"http://service.com","minZoom":"0","maxZoom":"18"}

Request Body
media type data type
application/json object
Response Body
media type data type description
application/json object JSON Response with list of discovered map data sources

Example of response:

{"list":[{"indexid": 1,"other_attributes":"values"},{"indexid": 2,"other_attributes":"values"}]}

POST /admin/maps/sources/json

Adds map data sources selected from retrieved list

Example of request:

{"mapSources":{"list":[{"indexid":1},{"indexid": 2}]},"serviceUrl":"http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/TOPO?REQUEST=GetCapabilities&SERVICE=WMTS","serviceType":"WMTS"}

Request Body
media type data type
application/json object
Response Body
media type data type description
application/json object JSON Response with information, whether the adding has or has not been succeeded.

Example of response:

{"noofSucceeded":1,"noofSkipped":2,"noofFailed":0,"success": true}