LibraryService

Moves a book to another shelf, and returns the new book. The book id of the new book may not be the same as the original book.

post/v1/shelves/{shelf}/books/{book}:move

Request

  • Base URL
    https://library-example.googleapis.com
  • Auth
    none declared

Path parameters

shelfstring required

The shelf id.

bookstring required

The book id.

Request body

namestring required

The name of the book to move.

other_shelf_namestring required

The name of the destination shelf.

Response

OK

namestring required

The resource name of the book. Book names have the form shelves/{shelf_id}/books/{book_id}. The name is ignored when creating a book.

authorstring

The name of the book author.

titlestring

The title of the book.

readboolean

Value indicating whether the book has been read.

borrow_timestring date-time

The previous borrowing timestamp.

created_atstring date-time

The creation date and time.

updated_atstring date-time

The last update date and time.

Changes

    • breaking

      the request's body type changed from no type to object

    • breaking

      the response's body type changed from no type to object for status

    • breaking

      the request property became required

    • breaking

      the request property became required

    • info

      the response property became required for the status