A Flask API that retrieves and decodes data from the Watermelon Index service.
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Run the application:
python app.pyThe API exposes a single endpoint:
- GET
/api/data: Retrieves the decoded data from the Watermelon Index service
Example request:
curl http://localhost:5000/api/The response will be the decoded JSON data from the service.