Question 15
You are building a Flask-RESTful API with the following code:
from flask import Flask, request, jsonifyfrom flask_restful import Resource, Api
app = Flask(__name__)api = Api(app)
class Hello(Resource): def get(self, message="No Data Found"): return {"message": "Hello, World!"}
def post(self): data = request.get_json() return {"received": data}, 201
api.add_resource(Hello, '/hello')
if __name__ == '__main__': app.run(debug=True)Which of the following statements is/are true?(Select all that apply)
The Api class automatically handles URL routing for all resources
This API will return HTML content when accessed via a browser