Complete borrow restful api