Finish borrow revert book function API