This is a Flask app that serves a simple JSON response.
- Python
- Flask
- Install Python requirements
pip install -r requirements.txt - Start the server for development
python3 main.py
- URL: /
- Method: GET
- Description: Returns a simple JSON response with a "data" key containing the string "hello world".
- URL: /chat/{msg}
- Method: GET
- Description: Sends the provided message to the chat and returns the response from the chat as JSON.
- URL: /chat
- Method: POST
- Description: Sends a message provided in the request payload to the chat and returns the response from the chat as JSON.