The List maps web service returns a list of all maps available on the Fluid Topics server:
/api/khub/maps
- User rights are taken into account when the appropriate Authorization header is provided, otherwise only public results are returned.
- Clustering is not available for this web service.
After listing the maps, it is possible to use endpoints to target and retrieve specific information in a map. The following lines show an example of the List maps web service implementation in Python.
import requests
FT_SERVER_URL = 'https:// <host>/<serviceId>/<status>/'
MAPS_ENDPOINT = '/api/khub/maps'
HEADERS = {'FT-Authorization': 'Basic ...'}
def crawl_maps():
URL = FT_SERVER_URL + MAPS_ENDPOINT
...
def crawl_map(map_preview):
URL = FT_SERVER_URL + map_preview['mapApiEndpoint']
...
Since the List maps web service returns all maps on a Fluid Topics server, it is also possible to use it to crawl maps.