Testing work for Emphasoft
-
First, you need install requirements in file
req.txtpip install -r req.txt -
Next, you need start FastApi server:
python main.pyor
uvicorn main:app -
Server running on http://127.0.0.1:8000 by default.
To start the task, you need to send a GET request to http://localhost:8000/search with 2 params:
query- required (String)task_type- optional (String).download | json, defaultjson. Iftask_typeisn't valid, starting default task
Example request: requests.get("http://localhost:8000/search?query=Form 11-C&task_type=download")