Kizspy.me
]
},
{
{"_id": "66211aaa12bcab1234567722", "name": "Best Practices" }
"_id": "66211aaa12bcab1234567899",
"title": "The Pragmatic Programmer",
"publishedYear": 1999,
"availableCopies": 2,
"author": {
},
"_id": "66211aaa12bcab1234567733",
"name": "Andrew Hunt",
"bio": "Software engineer and author..."
"genres": [
{"_id": "66211aaa12bcab1234567711", "name": "Software Engineering"}
]
}
Zoom
Question 2 (2 points) - Update a Book by ID
Objective:
Create a REST API to update an existing book by its ID. The request may include updated
title, author, genres, published Year, or availableCopies.
• Endpoint: PUT /api/books/:id
+100%
Close