Abstract class for REST webservices
Remove map data source
name | type | description | default | constraints |
---|---|---|---|---|
mapdatasourceId | path | ID of map data source | long |
media type | data type | description |
---|---|---|
application/json | object | JSON Response with information, whether the removing has or has not been succeeded. |
Retrieves map data sources offered by passed service
Example of request:
{"serviceType":"OSM|TMS|WMTS","serviceURL":"http://service.com","minZoom":"0","maxZoom":"18"}
media type | data type |
---|---|
application/json | object |
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"}]}
|
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"}
media type | data type |
---|---|
application/json | object |
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}
|