cURL
curl --request DELETE \ --url https://api.example.com/api/v1/users/{userId}/books/{bookId}
{ "id": "550e8400-e29b-41d4-a716-446655440000", "userName": "jsmith", "name": "John Smith", "birthDate": "1990-05-15", "bookIds": [ "9f3e4a56-2c1d-4b8e-8f6d-5a3c2b1d4e5f" ] }
Removes a book from a user’s collection
Authorization: Bearer <your_jwt_token>
curl -X DELETE "https://api.library.com/api/v1/users/550e8400-e29b-41d4-a716-446655440000/books/7c9e6679-7425-40de-944b-e07fc1f90ae7" \ -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."