Stopwords API

Note
These endpoints have been deprecated since Fusion 2.4.

Examples

Note
Use port 8765 in local development environments only. In production, use port 8764.

Update the stop words list with a new list of stop words:

REQUEST

curl -u user:pass -X PUT -H 'Content-type: application/json' -d '["a", "and", "of", "the"]' http://localhost:8764/api/apollo/stopwords/docs

RESPONSE

None.

List the current stop words list:

REQUEST

curl -u user:pass http://localhost:8764/api/apollo/stopwords/docs

RESPONSE

[ "a", "and", "of", "the" ]

Upload a stop words file:

REQUEST

curl -u user:pass -X PUT --form file=@stopwords.txt http://localhost:8764/api/apollo/stopwords/docs

RESPONSE

None.

Download a stop words list & save it as a file named "stopwords.txt":

REQUEST

curl -H "Accept: application/octet-stream" http://localhost:8764/api/apollo/stopwords/docs > stopwords.txt

RESPONSE

None.