Description
Users should be able to update some or all details of a book by its id. The request body may be different for all use cases. Users should be able to update one or more than one property of a book
Difficulty
API Endpoint
PUT http://localhost:3000/books/update/:id
Controller
/controllers/books/updateBook.js
Request Params
Request Body
title
subtitle
description
author
publisher
publishedOn
pages
website
Response
{status : 200,
message : "Book updated successfully"
book : {
"isbn":"9781593279509",
"title":"Eloquent JavaScript, Third Edition",
"subtitle":"A Modern Introduction to Programming",
"author":"Marijn Haverbeke",
"published":"2018-12-04T00:00:00.000Z",
"publisher":"No Starch Press",
"pages":472,
"description":"JavaScript lies at the heart of almost every modern web application, from social apps like Twitter to browser-based game frameworks like Phaser and Babylon. Though simple for beginners to pick up and play with, JavaScript is a flexible, complex language that you can use to build full-scale applications.",
"website":"http://eloquentjavascript.net/"
},
Description
Users should be able to update some or all details of a book by its id. The request body may be different for all use cases. Users should be able to update one or more than one property of a book
Difficulty
API Endpoint
PUT
http://localhost:3000/books/update/:idController
/controllers/books/updateBook.jsRequest Params
idRequest Body
titlesubtitledescriptionauthorpublisherpublishedOnpageswebsiteResponse