Question 4
Consider the below Flask code snippet:
from flask import Flask, jsonifyapp = Flask(__name__)
@app.route('/api/courses')def get_courses(): courses = [{'id': 'CS1001', 'name' : 'CT'}, {'id' : 'CS1002', 'name': 'PDSA'}] return jsonify(courses)If the application is running locally, what will be the status code and mimetype of the response for the URL, http:/127.0.0.1:5000/api/courses?