5

I'm a little lost in here. I'm starting in the first part (/articles) and I can't visualize in how to get it done because you need the postal_code from the user input in order to pass in this geo into the lookup() function. Don't know how to start it if you don't have the geo.

Basically you already would have to had completed the typewriter and /search before doing the /articles right? I don't know, can anyone give me some direction in how to approach it? Thanks in advance.

1 Answer 1

3

Complete the implementation of /articles in such a way that it outputs a JSON array of objects, each of which represents an article for geo, whereby geo is passed into /articles as a GET parameter

# retrieve the geo argument
location = request.args.get("geo")

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .