Test the FastAPI REST API (Vanilla JavaScript)

This page shows a quick example of sending text to your REST API from Vanilla JavaScript to process them with spaCy. Make sure the server is running on the given host and port via python -m spacy project serve. See the source of this page for the code.