Question 24
Consider the following Flask app code.
from flask import Flaskfrom flask_restful import Resource, Api
app = Flask(__name__)api = Api(app)
class MyApiResource(Resource): def get(self): return {"response": "GET"}, 200
def post(self, value): return {"response": "POST", "value": value}, 200
api.add_resource(MyApiResource, "/", "/<int:value>")
if __name__ == "__main__": app.run(debug=True)The above flask app is running on “http://127.0.0.1:5000”. Which of the following commands will return a runtime error?