To use this API, you need to install the required dependencies:
pip install flask pyodbc
After installing the dependencies, you can run the API using:
python your_api_filename.py
The API runs off port 5000
Once the API is running, you can make a POST request to http://localhost:5000/query with a JSON body containing the SQL query you want to execute. The API will execute the query and return the results as a JSON response.