I am trying to retrieve data from an DB2 using pyodbc and print it in JSON using Python. I have 2 different func.
This one's works :
import flask
from flask import flash, request, Flask, jsonify
import pyodbc
@app.route('/api/acrdkl/filter', methods=['GET'])
def api_filter():
dkkdcb =...
I need practical advice if my approach is correct.
What is the goal?
Having flask app that is separated between 3 subdomains: admin. | api. | user. There will be some shared data like models
What I did so far
I am new to Python, but this is how I made it and it works. I'm just not really...