bookshop web service this function resets the titleauthor and price of the book retrieved from the bookshop it again returns the updated book as the result of running the function the curl program can again be used to invoke this functionalthough this time the http put method must be specifiedcurl - "content-typeapplication/json- put - '{"title":"read python book""author":"bob jones","isbn":" ""price":" "}the output from this command is"book""author""bob jones""isbn"" ""price"" ""title""read python bookthis shows that book has been updated with the new information what happens if we get it wrongthe code presented for the bookshop web services is not particularly defensiveas it is possible to try to add new book with the same isbn as an existing one howeverit does check to see that an isbn number has been supplied with both the create_book(and update_book(functions howeverwhat happens if an isbn number is not suppliedin both functions we call the flask abort(function by default if this happens an error message will be sent back to the client for examplein the following command we have forgotten to include the isbn numbercurl - "content-typeapplication/json- post - '{"title":"read book""author":"tom andrews""price":" "}