app - project folder; server.py - main running file
Requires: Python >=3.5
pip install -r requirements.txt --no-cache-dir
python server.py
curl http://localhost:5000/echo/test123
curl --header "Content-Type: application/json" \
--request POST \
--data '{\
"input" : "Some input text",\
"token" : ""
}' http://localhost:5000/api/v1/input
Answer: script output example { "output": "oewiruwr ioeiwr " "token": "fHBQCHs" }
curl http://localhost:5000/clear/fHBQCHs
Example for token fHBQCHs
Answer: 'Cleared'