Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IT NEEDS TO BE DONE IN PYTHON PLEASE, AND PLEASE TRY TO KEEP IT AS SIMPLE AS POSSIBLE FOR A BEGINNINGER. Objectives Learn how to

image text in transcribed

IT NEEDS TO BE DONE IN PYTHON PLEASE, AND PLEASE TRY TO KEEP IT AS SIMPLE AS POSSIBLE FOR A BEGINNINGER.

Objectives Learn how to create a simple REST API Develop error handling code to handle unexpected user input Instructions Create a simple REST API using Python Flask. This API will be used to keep track of simple notes. Each note will have and ID and two properties (title and body of the note). The note should be able to be retrieved or updated using the or . The note can only be created using the <title> and deleted using the <id>. When the note is created, it must return the <id> or the new note. Every call should return the appropriate HTTP status code and message whether it was successful or not. How the notes are stored in Python is up to you, but the storage does not have to be persistent (no files or database required until assignment 4). You can use a simple array, list or dictionary. . Method URL Action GET Retrieve all notes otes/ otes/.id GET GET otes/:title PUT otes/:id Retrieve the note for the matching <id> Retrieve the note with the specified <title> Update note with the specified <id> Update note with the specified <title> Add a new note. Returns the note <id> Delete the note with the specified <id> PUT otes/-title POST otes/title DELETE otes/:id</id></id>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions