CS5600: Programming Assignment (50 points) In this assignment, you will learn and implement CRUD(Create, Read, Update, D

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

CS5600: Programming Assignment (50 points) In this assignment, you will learn and implement CRUD(Create, Read, Update, D

Post by answerhappygod »

CS5600: Programming Assignment (50 points)In this assignment, you will learn and implement CRUD(Create, Read,Update, Delete). These are the basic APIs to perform at mostfunctions on web applications. You will develop the backend webframework using Python Flask connect to MongoDB(https://www.mongodb.com). There are some videos on Blackboardabout Flask framework and MongoDB that you can study beforestarting this assignment. To test the backend web framework, youmust use API platforms such as Postman APIPlatform(https://www.postman.com).The CSV file(Netflix.csv-Movie and Show on Netflix) is provided inthis assignment with the column names including: idtitletypedescriptionrelease_yearage_certificationruntime (mins.)genresproduction_countriesimdb_scoreFirst, the instructor will guide you how to generate MongoDBDatabase and collections using MongoDB Compass. You will importthis csv file to collection netflix on MongoDB database in JSONformat.
The MongoDB Configuration:Host = ‘localhost’Port = 27017Database name = databaseCollection name = netflix … try: mongo = pymongo.MongoClient( host ='localhost', port = 27017, serverSelectionTimeoutMS= 1000 ) db = mongo.database mongo.server_info() #trigger exception ifcannot connect to dbexcept: print("Error -connect to db")
In xxxx.py file, you must perform the following mainfunctions: Insert the new movie and show. @app.route('/api', methods=['POST'])
Update the movie and show information using title. (By updatetitle, description and imdb score)@app.route('/api/<string:fname>', methods=['PATCH'])
Delete the movie and show information using [email protected]('/api/<string:fname>', methods=['DELETE'])
Retrieve all the movies and shows in [email protected]('/api', methods=['GET'])
Display the movie and show’s detail using [email protected]('/api/<string:fname>', methods=['GET'])
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply