Here is my simple code:
from Flask import request
@app.route("/pods", methods=["GET"])
def list_pods():
cluster = request.args.get("cluster")
project = requests.args.get("project_name")
print(cluster)
print(project)
Running the following two cURL commands results in the second-defined variable to not get parsed:
$ curl localhost:51918/pods?cluster=nw-dc-blah&project_name=my_project
nw-dc-blah
None
$ curl localhost:51918/pods?project_name=my_project&cluster=nw-dc-blah
None
my_project
How can I get Flask to parse both GET arguments?