Adding a rest method to save book.