The List documents web service returns a list of all unstructured documents available on the Fluid Topics server:
/api/khub/documents
- User rights are taken into account when the appropriate Authorization header is provided, otherwise only public results are returned. Both prefixed and unprefixed headers work.
- Clustering is not available for this web service.
After listing the unstructured documents, it is possible to use endpoints to retrieve more information about a document. The following lines show an example of the List documents web service implementation in Python.
import requests
FT_SERVER_URL = 'https:// <host>/<serviceId>/<status>/'
DOCUMENTS_ENDPOINT = '/api/khub/documents'
HEADERS = {'FT-Authorization': 'Basic ...'}
def crawl_documents():
URL = FT_SERVER_URL + DOCUMENTS_ENDPOINT
...
def crawl_document(document_preview):
URL = FT_SERVER_URL + document_preview['documentApiEndpoint']
...
Use a REST Client tool like Postman to retrieve the Basic authentication key.