Initialize a parser and then parse parameters name (a string) and quantity(an integer) from the query string.
Intro to RESTful Flask
Parsing the query string
Report a typo
Write a program in Python 3
parser = RequestParser()
# add arguments to parser
@app.route('/')
def main_view():
# parse data here
return {'data_from_url': data}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.