adding new book we can now test this service using the curl command line programcurl - "content-typeapplication/json- post - '{"title":"read book""author":"bob","isbn":" ""price":" "}the options used with this command indicate the type of data being sent in the body of the request (-halong with the data to include in the body of the request (dthe result of running this command is"book""author""bob""isbn"" ""price" "title""read bookillustrating that the new book by bob has been added updating book updating book that is already held by the bookshop object is very similar to adding book except that the http put request method is used again the function implementing the required behaviour must use the flask request object to access the data submitted along with the put request howeverin this case the isbn number specified is used to find the book to be updatedrather than the specifying completely new book the update_book(function is given below@app route('/book'methods=['put']def update_book()if not request json or not 'isbnin request jsonabort( isbn request json['isbn'book bookshop get(isbnbook title request json['title'book author request json['author'book price request json['price'return jsonify({'book'book})