Question: Small Python Networking application: querying the database (data provided below) using a web-browser: develop a web-server that allows the database to be queried using any
Small Python Networking application:
querying the database (data provided below) using a web-browser: develop a web-server that allows the database to be queried using any web-browser. You should develop the API and your web-server will support the following HTTP GET operations:
"ip address:portnumber/api/studentlist" should return the list of students as an array in web browser, encoded in JSON.
"ip address:portnumber/api/studentmark/[student-name]" should return the mark for the student in web browser whose name is specified as part of the URL string.
The outputs of the queries above should be viewable using any browser.you should use the Python Flask framework for developing your web-server, and Python's JSON encoder library for sending JSON formatted strings.
student info: Micheal: 95 Amy:20 Steven:68 Amada:72 Joe:82 Frank:19 Apple:0 john:77
please write some comment in it so i can understand beter , thank you in advance for help me out!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
