Welcome to the API documentation for Chat-KL1. This api is aimed to be a chatbot that answers questions about me and is also able to learn how to answer questions by the user. This was made using FastAPI, python, and Pymongo for mongodb.
The base URL for all API endpoints is: https://chatbot-api-31xm.onrender.com/
- Method: [GET]
- Path:
/
- Response:
- Success: [200]
[ { "question": "who are you", "answer": "blah blah." }, { "question": "how old are you", "answer": "10" } ]
- Method: [POST]
- Path:
/
- Request Body:
The session is optional but is needed if you want to fetch previously learned questions.
{ user_msg: str session: int | None = None }
- Response:
- Success: [200]
{ "answer": "blah blah.", "session": 1234 }