curl -X POST "http://localhost:8000/users/"
-H "Content-Type: application/json"
-d '{"username": "john", "interests": ["cricket", "football"]}'
curl "http://localhost:8000/questions/fresh/"
-H "username: john"
curl "http://localhost:8000/questions/history/"
-H "username: john"
curl "http://localhost:8000/questions/history/?interest=cricket"
-H "username: john"
curl "http://localhost:8000/questions/pending/"
-H "username: john"
curl -X POST "http://localhost:8000/questions/1/resolve/"
-H "Content-Type: application/json"
-H "username: john"
-d '{"result": "yes", "note": "Team won the match"}'
pip install -r requirements.txt
python run_api.py
python -m spacy download en_core_web_sm
cp .env.example .env # Copy example env file and update with your values
uvicorn prediction_app.api.main:app --reload