support multi-functions (routes) in a function instance as it is very limited to only support one function in a function instance.
dynamically extract params from the route path. for example: @app.route('/product/<name>', methods=["GET"])
example:
# health function
@app.route("/functions/<funcname>/health", methods=["GET"])
def health(request, funcname):
return "", 200
# dynamic process function
@app.route("/functions/<funcname>:process", methods=["POST"])
def process(request, funcname):
function = FUNCTIONS.get(funcname)
data = dict(request.json)
return {"output": function.process(data["input"])}
Hi OpenFunction team,
I would like to request a feature of supporting multi routes in the function framework (mainly in python).
use cases:
params
from the route path. for example:@app.route('/product/<name>', methods=["GET"])
example:
Similiar requests in gcp function-framework: