1

I have the below py code:

@app.route('/v1/api/checkCurrentWeather?city=Tel-aviv')
def check_current_weather_by_city():
    city = None

How Do I get the city parameter from the GET request?

I'm working with this service.

graj499
  • 87
  • 2
  • 12
rel.foo.fighters
  • 422
  • 1
  • 3
  • 16
  • Why did you put `city` in `@app.route`? I think your question answered here: https://stackoverflow.com/questions/11774265/how-do-you-access-the-query-string-in-flask-routes – Iman Shafiei Apr 25 '21 at 21:44
  • Have you tried putting methods = ['GET' , 'POST'] in your header? – Joseph Attia Apr 25 '21 at 21:45

0 Answers0