GH avatar Bite 52. Create a movie quote API with Flask

In this Advanced Bite you will implement a full-blown CRUD app to manage movie quotes using Flask. Implement the following routes:

@app.route('/api/quotes', methods=['GET'])
@app.route('/api/quotes/', methods=['GET'])
@app.route('/api/quotes', methods=['POST'])
@app.route('/api/quotes/', methods=['PUT'])
@app.route('/api/quotes/', methods=['DELETE'])

To not distract you from the building API aspect, we just store the data in a list of dicts, in real life you would use a database though.

Make sure you check the tests for the required return codes for both good and bad calls to the API and use jsonify on your return data.

Good luck and have fun!

go back Advanced level
Bitecoin 4X

37 out of 43 users completed this Bite.
Will you be Pythonista #38 to crack this Bite?
Resolution time: ~118 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 7.25 on a 1-10 difficulty scale.
» Up for a challenge? 💪

Buy Now Login and get coding
We use Python 3.7